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
I tried all answers above, only this works for me:
config/environments/production.rb
Rails.application.routes.default_url_options[:protocol] = 'https'
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux] Rails 3.2.22.5