undefined method `devise_for' in rails

前端 未结 4 1760
天命终不由人
天命终不由人 2021-01-31 01:24

After I install devise and create a user model. I rake db:migrate and then I rake routes. I then get a error with \"undefined method `devise_for\' for

4条回答
  •  没有蜡笔的小新
    2021-01-31 01:43

    Honestly, I would recommend following these two Railscasts (Episode 209 and Episode 210). The first is a simple and very easy walkthrough for installing Devise and the second is about customizing it to fit your application.

    I've watched both episodes and they drastically helped me with Devise, particularly with the customization.

    Your best bet is to start from scratch - you'll learn a heck of a lot and have Devise fully installed and functional.

    Hope this helps! Good luck.

提交回复
热议问题