title: Rails redirect with https
body: <p>I'm maintaining a Ruby on Rails site and I'm confused as to how to perform redirects to relative URLs using the https protocol.</p>
  
  <p>I can successfully create a redirect to a relative URL using http, for example:</p>
  
  <pre><code>redirect_to "/some_directory/"
  </code></pre>
  
  <p>But I cannot discern how to create a redirect to a URL using the https protocol. I have only been able to do so by using absolute URLS, for example:</p>
  
  <pre><code>redirect_to "https://mysite.com/some_directory/"
  </code></pre>
  
  <p>I would like to keep my code clean, and using relative URLs seems like a good idea. Does anyone know how to achieve this in Rails?</p>