New Discussion

Notifications

You’re not receiving notifications from this thread.

Rails for Beginners Part 21: Reset Password Token Mailer Discussion

10
General

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

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

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 :/

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

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

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.

Dude thank you for this

me too what's the solution

How to invalid token after successful reset password?

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

Good job

Join the discussion
Create an account Log in

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

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

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