开发者

Devise is not creating a User.rb model when I run the model generator

开发者 https://www.devze.com 2023-03-11 01:54 出处:网络
[WARNING] You provided devise_for :users but there is no model User defined in your application I\'ve done some googling and it seems this is something do with setting up the ORM configuration for d
[WARNING] You provided devise_for :users but there is no model User defined in your application

I've done some googling and it seems this is something do with setting up the ORM configuration for devise.rb in config/initializers which I had done:

require 'devise/orm/开发者_JS百科mongo_mapper'

Is there something I am missing? What do I need to do to get the Devise generators to work with mongomapper?


Don't forget to set

Devise.setup do |config|
  config.orm = :mongo_mapper
  ...
end

in your initialiser as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消