Devise is driving me crazy
Please can someone help me. I have set up sendGrid with devise. I have followed numerous tutorials and done everything correct but after a user signs up the log file site with the following lines:
Rendering devise/mailer/confirmation_instructions.html.erb Rendered devise/mailer/confirmation_instructions.html.erb (Duration: 0.4ms | Allocations: 91) Devise::Mailer#confirmation_instructions: processed outbound mail in 3.7ms
After what seems like an enternity the actual page redirects on the front end and the log updates with the following. If you look at the Delivered Mail line and the Message ID they contain some crazy random email address with my Macbook name.
Delivered mail [email protected] (60180.2ms) Date: Wed, 18 Mar 2020 21:34:28 +0000 From: [email protected] Reply-To: [email protected] To: [email protected] Message-ID: <[email protected]> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <p>Welcome [email protected]!</p> <p>You can confirm your account email through the link below:</p> <p><a href="http://localhost:3000/users/confirmation?confirmation_token=bJiYjwaRVzvbDPc7F9Y4">Confirm my account</a></p> Redirected to http://localhost:3000/verify Completed 302 Found in 62111ms (ActiveRecord: 75.1ms | Allocations: 33693)
If anyone could help me with this I would be so greatful. Its cost me a day and half so far.
Thanks for your help in advance.
I solved this. I had a default port in my environments.rb file and then localhost was also being declared in my developments.rb which was causing a conflict as it was using port 465 in dev.