简体   繁体   English

捆绑件执行佣金耙路线不起作用

[英]bundle exec rake routes is not working

When I run bundle exec rake routes , it prints this messages: 当我运行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)

This started to happen when I installed the gem twitter-bootstrap-rails 当我安装了gem twitter-bootstrap-rails时,这开始发生

Any suggestions are welcome. 欢迎任何建议。

Comment this line in config/environments/development.rb (if working on development) config/environments/development.rb注释此行(如果正在开发中)

# 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 这是因为较新的rails版本删除了debug_rjs,您更新了rails但没有更新您的development.rb

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

add this to your Gemfile 将此添加到您的Gemfile

 gem "system_timer", "~> 1.2.4"

and run 并运行

 bundle install

Try installing system_timer gem and then retry what you are doing. 尝试安装system_timer gem,然后重试您正在做什么。

To install system_timer gem 安装system_timer gem

gem install system_timer

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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