scheme()
Returns ‘https’ if this is an SSL request and ‘http’ otherwise.
# File actionpack/lib/action_dispatch/http/url.rb, line 10 def scheme ssl? ? 'https' : 'http' end