NameError in Devise::RegistrationController#create

1–2 minutes

read

NameError in Devise::RegistrationController#create

Screen Shot 2017-07-09 at 12.34.28 PM

If you get this kind of error while using Devise in your rails project, you have landed to right place.

Let us first know why we got this error.

This error indicates that you have not correctly fixed the permissions on devise.

IS THE USER MARKED CONFIRMABLE????

Now we directly jump to the soultion ,

You have to take care of two things -:

  1.  In user.rb file add :confirmable or uncomment this portion.
  2.  In the migrate folder there is a file under that just uncomment the confirmable part.

NOW in terminal,

$rake db:drop

$rake db:create

$rake db:migrate

AND YOU ARE NOW DONE.

Leave a comment