Save 36% for Black Friday! Learn more

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails for Beginners Part 21: Reset Password Token Mailer Discussion

Need rails 6.1.0 and above to access user.signed_id in case somene is having issues with that

Reply

On the upside, this led to me performing my first Rails app upgrade.

Reply

Thank you for the tip! I was getting pretty frustrated since, with all the Rails "magic" going on, I usually have no idea where the source of any issue is :/

Reply

Hi,
I'm using Rails 6.1.4.1 and user.signed_id doesn't work:

irb(main):003:0> user.signed_id
(irb):3:in <main>': undefined local variable or methoduser' for main:Object (NameError)

any ideas?
thanks

Reply

I'm getting the same error! Did you manage to figure it out?

Reply

you should first sign user to the user you want to test. if you have one user you use `user= User.last' to use it.

Reply

Dude thank you for this

Reply

me too what's the solution

Reply

How to invalid token after successful reset password?

Reply

what's the alternative for whom are using < version 6

Reply

Good job

Reply
Join the discussion
Create an account Log in

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

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

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