当我运行模型生成器时,Devise 没有创建 User.rb 模型
[WARNING] You provided devise_for :users but there is no model User defined in your application
我已经做了一些谷歌搜索,看来这与我在 config/initializers 中设置 devise.rb 的 ORM 配置有关:
require 'devise/orm/mongo_mapper'
我缺少什么吗?我需要做什么才能让 Devise 生成器与 mongomapper 一起工作?
[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/mongo_mapper'
Is there something I am missing? What do I need to do to get the Devise generators to work with mongomapper?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要忘记
在初始化程序中进行设置。
Don't forget to set
in your initialiser as well.