当我运行时bundle exec rake routes
,它会打印以下消息:
法拉第:您可能需要安装 system_timer 以获得可靠的超时 耙中止! ActionView::Base:Class 的未定义方法 `debug_rjs=' 任务:TOP => 路线 => 环境 (通过使用 --trace 运行任务查看完整跟踪)
当我安装 gem 时,这开始发生twitter-bootstrap-rails
欢迎任何建议。
当我运行时bundle exec rake routes
,它会打印以下消息:
法拉第:您可能需要安装 system_timer 以获得可靠的超时 耙中止! ActionView::Base:Class 的未定义方法 `debug_rjs=' 任务:TOP => 路线 => 环境 (通过使用 --trace 运行任务查看完整跟踪)
当我安装 gem 时,这开始发生twitter-bootstrap-rails
欢迎任何建议。
评论这一行config/environments/development.rb
(如果从事开发工作)
# config.action_view.debug_rjs = true
这是因为较新的 rails 版本删除了 debug_rjs,您更新了 rails 但没有更新您的development.rb
https://github.com/rails/rails/commit/d8f23ca627df85b33fe8db87db5483c10b62bfe6
将此添加到您的Gemfile
gem "system_timer", "~> 1.2.4"
并运行
bundle install
尝试安装 system_timer gem,然后重试您正在做的事情。
安装 system_timer gem
gem install system_timer
我只是卸载了引导程序,一切都恢复了正常 XD