Getting Rails URL helpers to automatically output https urls Getting Rails URL helpers to automatically output https urls ruby-on-rails ruby-on-rails

Getting Rails URL helpers to automatically output https urls


Use test_url(:protocol => 'https') for https urls.


Haven't tried but add this in your ApplicationController:

def default_url_options(options={}) { :secure => true }end 


def default_url_options(options={}) { :protocol => "https" }end