How to I tell Devise to use https (not http) for all the account confirmation and password reminder etc links?
[note: I\'m not looking for a solution to redirect all
To set the protocol but also a subdirectory :
config.action_mailer.default_url_options = { :host => "www.example.com", :protocol => 'https', :only_path => false, :script_name => "/app" #add this attribute if your app is deployed in a subdirectory }
Source