Ruby on rails 设计3.5.3安装命令返回“;“已在使用中”;路由错误,但routes.rb为空

Ruby on rails 设计3.5.3安装命令返回“;“已在使用中”;路由错误,但routes.rb为空,ruby-on-rails,ruby,ruby-on-rails-4,devise,Ruby On Rails,Ruby,Ruby On Rails 4,Devise,我正在构建Rails 4.2.5应用程序,我想使用Desive。我已在我的GEM文件中包括Desive,如下所示: gem 'Devise' 执行bundle install命令后,我继续执行以下操作: rails generate devise:install 按照回购协议上的安装说明。此时,我得到以下错误: Invalid route name, already in use: 'new_user_session' You may have defined two routes wit

我正在构建Rails 4.2.5应用程序,我想使用Desive。我已在我的GEM文件中包括Desive,如下所示:

gem 'Devise'
执行bundle install命令后,我继续执行以下操作:

rails generate devise:install
按照回购协议上的安装说明。此时,我得到以下错误:

Invalid route name, already in use: 'new_user_session' 
You may have defined two routes with the same name using the `:as` option,  
or you may be overriding a route already defined by a resource with the same
naming. 
检查其他相关的StackOverflow答案,他们都犯了相同的错误:他们的routes.rb文件中确实有一条重复的路由。我的问题是我的routes.rb文件完全是空的!它只有以下几点:

Rails.application.routes.draw do

end
为了再次确认,我运行了rake路由,终端返回我没有定义路由。那么我做错了什么?当没有定义任何路由时,它怎么可能抱怨现有路由?非常感谢您的帮助


您需要在您的路线中包括
为用户设计
file@RichPeck还是一样的错误。我甚至尝试直接创建rails generate Desive User,但仍然无法运行。嗯,你有github repo吗?你没有模型吗?