sample_app_3rd_edition icon indicating copy to clipboard operation
sample_app_3rd_edition copied to clipboard

Set mailer default URL protocol to HTTPS

Open tacos1998 opened this issue 9 years ago • 0 comments

I'm not sure what happened to Gemfile.lock, but the code in config/environments/development.rb sets the default protocol for the account activation (and all other) email links to HTTPS (I had to edit the "host" variable to get the links to work on my workspace). Previously, the default was HTTP, and upon clicking the link I was redirected to the homepage (with the "Invalid activation link" behavior), but the new user's "activated" attribute was set to "true" (verified with the rails console before and after visiting the URL) and I was able to log in without any redirects, error messages, etc. All tests have passed before and after this implementation.

This behavior occurred using Rails 4.2.2 with the Cloud9 IDE in Google Chrome.

tacos1998 avatar Mar 03 '16 04:03 tacos1998