Undefined local variable or `confirm_at 'method for Devise

I am new to RoR and I have successfully installed the Evise jewel. When I try to go t localhost: 3000 I get and the error is an undefined local variable or the `confirmed_at' method I assume this is due to the Devise stone. My schema.rb not showing

 t.string "confirmation_token" t.datetime "confirmed_at" t.datetime "confirmation_sent_at" t.string "unconfirmed_email" 

I have a Confirmation section that does not contain comments in the database, and also added :confirmable in the User.rb file. Any help here is much appreciated. I am not sure how to get a schema to match.

+5
source share
1 answer

THANKS TO ALL THAT HELPS I was able to fix the problem by resetting db using the following rake db:migrate:reset rake db:reset commands and thatโ€™s all for me. Thanks everyone!

+5
source

Source: https://habr.com/ru/post/1209745/


All Articles