Devise Ruby Gem NameError when installing

I was trying to install the Ruby Gem Devise and I stupidly overlooked a step. I included the gem in my gemfile then ran the bundle install on the prompt. Then I forgot to run the generator rails generate devise:install .

Then when I went to generate my User model it came up with the following error C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.1.4/lib/active_support/inflector/methods.rb:269:in const_get': uninitialized constant User (NameError)`

I've tried uninstalling the gem and removing anything that refers to Users and reinstalling the gem but it keeps coming up with the same error.

I'm hoping someone can maybe shine a bit of light on this issue


I've just fixed the issue. When you run the bundle install command, it automatically configures the routes folder, so I've removed any reference to devise and it's worked now

链接地址: http://www.djcxy.com/p/35984.html

上一篇: Rails 3应用程序部署,Bundler和Rake问题

下一篇: 在安装时设计Ruby Gem NameError