为什么我的Rails服务器无法启动?

时间:2015-03-05 05:07:24

标签: ruby-on-rails

我今晚尝试启动我的rails服务器但它没有用。我对ROR很新。我收到以下错误:

=> Booting WEBrick
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/devise-3.1.2/lib/devise/rails/routes.rb:414:in `ensure in with_devise_exclusive_scope': undefined method `merge!' for #<ActionDispatch::Routing::Mapper::Scope:0x007ff0d6ae3728> (NoMethodError)
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/devise-3.1.2/lib/devise/rails/routes.rb:414:in `with_devise_exclusive_scope'
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/devise-3.1.2/lib/devise/rails/routes.rb:227:in `block (2 levels) in devise_for'
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/devise-3.1.2/lib/devise/rails/routes.rb:330:in `block in devise_scope'
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/mapper.rb:940:in `block in constraints'
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/mapper.rb:816:in `scope'
    from /Users/HighlandMcKenna/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/mapper.rb:940:in `constraints'

直到现在它一直有效,我不知道为什么。请给我指导。

1 个答案:

答案 0 :(得分:0)

这是我认为在版本3.4.0中修复的问题

尝试将您的gem文件更新为

宝石'设计','〜&gt; 3.4.0'

然后运行

捆绑更新设计