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
You can add this code to ApplicationController
ApplicationController
def default_url_options(options={}) options.merge(protocol: :https) end
You can also check out to Getting Rails URL helpers to automatically output https urls