Ruby On Rails

Rails for Beginners Part 21: Reset Password Token Mailer



► Check out for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more:
► Ruby on Rails hosting with Hatchbox.io:
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails:

Similar Posts

3 thoughts on “Rails for Beginners Part 21: Reset Password Token Mailer
  1. Hi, @GoRails Thanks for this video series!. I'm having and error on user.signed_id method on rails c as follow:

    irb(main):007:0> user = User.last

    User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT ? [["LIMIT", 1]]

    => #<User id: 8, email: "richard@gmail.com", password_digest: [FILTERED], created_at: "2021-02-24 19:17:30", updated_at: "2021-02-24 19:17:30">

    irb(main):008:0> user.signed_id

    Traceback (most recent call last):

    1: from (irb):8

    NoMethodError (undefined method `signed_id' for #<User:0x0000000009a29528>)

    The same in the browser:
    #

    def reset

    @token = params[:user].signed_id(purpose: "password_reset", expires_in: 15.minutes)

    mail to: params[:user].email

    end

    What I'm missing here??

Leave a Reply

Your email address will not be published. Required fields are marked *