我包括' backbone-on-rails'在我的Gemfile中,做了捆绑安装,然后做了
rails generate backbone:install --javascript
我收到了以下错误。我使用rails 3.2.8和ruby 193.任何人都可以解释问题所在吗?
如果我无法使宝石工作,有人知道我应该在Rails应用程序中包含_underscore和backbone吗?
/Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:181:in `default_controller_and_action': missing :controller (ArgumentError)
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:78:in `normalize_options!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:61:in `initialize'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1304:in `new'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1304:in `add_route'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1284:in `decomposed_match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `block in match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `each'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:507:in `map_method'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:469:in `get'
from /Users/michael/Sites/backy/config/routes.rb:2:in `block in <top (required)>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:260:in `draw'
from /Users/michael/Sites/backy/config/routes.rb:1:in `<top (required)>'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `call'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `execute'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/michael/Sites/backy/config/environment.rb:5:in `<top (required)>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application.rb:103:in `require'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/railties-3.2.8/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
答案 0 :(得分:0)
它与rails-on-rails无关。我在routes.rb
中定义的路由中有错误