`method_missing': undefined method `devise' for User (call 'User.connection' to establish a connection)

前端 未结 9 1547
梦如初夏
梦如初夏 2020-12-20 11:29

I am new to Ruby on Rails and am trying to make my first application. I am having issues though anytime I run any rails generate command. I get the following er

9条回答
  •  时光取名叫无心
    2020-12-20 12:00

    I ran into a similar problem with an existing project freshly checked out from a repo:

    The specific missing files were:

    config/initializers/devise.rb 
    config/locales/devise.en.yml
    

    In this case, because the devise.rb was in the .gitignore list there was a config/initializers/devise.rb.example file that could be copied over.

提交回复
热议问题