当我运行bundle exec rake routes
时,会打印此消息:
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)
当我安装gem twitter-bootstrap-rails
欢迎任何建议。
答案 0 :(得分:3)
在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
答案 1 :(得分:0)
尝试安装system_timer gem,然后重试你正在做的事情。
安装system_timer gem
gem install system_timer
答案 2 :(得分:0)
我只是卸载了bootstrap,一切都恢复正常XD