简体   繁体   中英

bundle exec rake routes is not working

When I run bundle exec rake routes , it prints this messages:

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)

This started to happen when I installed the gem twitter-bootstrap-rails

Any suggestions are welcome.

Comment this line in config/environments/development.rb (if working on development)

# config.action_view.debug_rjs             = true

It's because the newer rails version remove debug_rjs, you updated you rails but didn't update your development.rb

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

add this to your Gemfile

 gem "system_timer", "~> 1.2.4"

and run

 bundle install

Try installing system_timer gem and then retry what you are doing.

To install system_timer gem

gem install system_timer

我只是卸载了引导程序,一切恢复为正常的XD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM