All threads / Rails for Beginners Part 21: Reset Password Token Mailer Discussion
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

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

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

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

Reply

me too what's the solution

Reply
Join the discussion

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

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

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

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.