what is the devise_mapping variable and how can I include it?

前端 未结 4 741
栀梦
栀梦 2021-02-01 21:19

I\'m trying to implement authentication with Devise in my Rails application (Rails 2.3.8, Devise 1.0.7, mongrel running on Windows Vista). But I\'m getting the following error:<

4条回答
  •  天涯浪人
    2021-02-01 22:21

    Do you have the devise_for call in your routes.rb file?

    For instance, if you are using it for your User class, then the route would be:

    devise_for :users

    for more info, see https://github.com/plataformatec/devise

提交回复
热议问题