Ask A Question

Notifications

You’re not receiving notifications from this thread.

Devise is driving me crazy

Gerard Donnelly asked in Gems / Libraries

Hi Guys,
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 5e7293e497bf4_4b8a3ff2574a84c04004a@Gerards-MBP-2.mail (60180.2ms)
Date: Wed, 18 Mar 2020 21:34:28 +0000
From: hey@test.com
Reply-To: hey@test.com
To: gerarddonnelly@googlemail.com
Message-ID: <5e7293e497bf4_4b8a3ff2574a84c04004a@Gerards-MBP-2.mail>
Subject: Confirmation instructions
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>Welcome gerarddonnelly@googlemail.com!</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.

Thanks,

Gerard

Reply

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.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.