Return ‘https://’ if this is an SSL request and ‘http://’ otherwise.
# File action_controller/request.rb, line 164 def protocol ssl? ? 'https://' : 'http://' end
<code/>
<pre/>
<code/>and<pre/>for code samples.