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

前端 未结 9 1593
梦如初夏
梦如初夏 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:19

    This happens because you missed the command:

    rails generate devise:install
    

    You need just comment all devise lines temporally (in routes.rb / user.rb) to not get raise.
    And run command again.

提交回复
热议问题