Is this an SSL request?
# File action_controller/request.rb, line 169 def ssl? @env['HTTPS'] == 'on' || @env['HTTP_X_FORWARDED_PROTO'] == 'https' end
<code/>
<pre/>
<code/>and<pre/>for code samples.