2012-04-24 82 views
0

当我运行bundle exec rake routes,它打印此消息:束EXEC耙路线不工作

 
Faraday: you may want to install system_timer for reliable timeouts 
rake aborted! 
undefined method `debug_rjs=' for ActionView::Base:Class 

Tasks: TOP => routes => environment 
(See full trace by running task with --trace) 

这开始的时候我安装了宝石twitter-bootstrap-rails

任何建议,欢迎发生。

+0

,可以在运行'捆绑高管耙路线--trace '并用它的输出更新问题? – 2012-04-24 03:13:46

回答

0

我刚刚卸载引导,一切都恢复正常了XD

0

尝试安装system_timer gem,然后重试您正在做的事情。

要安装system_timer宝石

gem install system_timer 
+0

我曾尝试过,但仍未开始工作 – 2012-04-24 02:40:27

+0

感谢您的回复。我已经尝试安装system_timer gem,但仍然无法使用'bundle exec rake routes'查看我的路线:C – 2012-04-24 22:25:09

3

评论这条线在config/environments/development.rb(如果工作发展)

# config.action_view.debug_rjs    = true 

这是因为新的轨道版本删除debug_rjs,你更新你的轨道,但没有更新 您的development.rb

https://github.com/rails/rails/commit/d8f23ca627df85b33fe8db87db5483c10b62bfe6

添加到您的Gemfile

gem "system_timer", "~> 1.2.4" 

和运行

bundle install 
+0

感谢您的回复。但我处于生产模式。并且我没有在config/environments/production.rb上看到config.action_view.debug_rjs 我还安装了没有任何版本规范的gem“system_timer”,以默认匹配其他gem的兼容性。 – 2012-04-24 22:22:37

+0

也许你可以尝试在所有的应用程序文件中找到'debug_rjs'。然后删除它们。 – 2012-04-24 23:52:50

+0

这会抛出一些沉重的错误日志,然后失败......:Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展。 /Users/bbnnt/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb – Ben 2012-12-22 17:00:55