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
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 method
user' 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