Rails 3.1+
I want my url helpers to use the https protocol without having to specify it in every helper I call.
After searching around I\'ve found various ways but none work
Whichever environment you want to use ssl (https://), just add this config lines to its configuration file in config/environments:
YOURAPPNAME::Application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
end