Set the protocol to https URL that is generated by UrlHelper
Add this line to config/environments/development.rb:
config.action_controller.default_url_options[:protocol] = 'https'
Then,
% rails c
> app.articles_url
=> https://www.example.com/articles
Written by Katsuya Hidaka
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Related Tags
#rails
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#