public Method

AbstractRequest.protocol

Return ‘https://’ if this is an SSL request and ‘http://’ otherwise.

Source Code

# File action_controller/request.rb, line 164
def protocol
  ssl? ? 'https://' : 'http://'
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.