title: how to output the current protocol and url using rails?
body: <p>I have a share dialog.</p>
  
  <p><strong>On dev it looks like:</strong></p>
  
  <pre><code>http://xxxxxx.com/stuff
  </code></pre>
  
  <p><strong>On prod:</strong></p>
  
  <pre><code>https://yyyyyyyyyyy.com/stuff
  </code></pre>
  
  <p>What's the best rails way to output #Protocol# #URL#</p>
  
  <p>And where can I set these in rails? thanks</p>