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

前端 未结 4 736
栀梦
栀梦 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:18

    Instead of using devise_mapping, you can use Devise.mappings[:user], given that the user class in question is User.

提交回复
热议问题