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

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

    Running rails generate devise:install creates a config/initializers/devise.rb file.

    You have to restart your server with Ctrl + C and rails s in order for a change in config file to take effect.

    Otherwise you'll get the same error upon refreshing the page.

提交回复
热议问题