简体   繁体   中英

rvm ruby 1.9.2 and Rails 3.1 can't start server

Im using rvm use 1.9.2 then when trying to run rails s I'm getting the following error.

/Users/pel/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.rc5/lib/action_view/railtie.rb:34:in `block (3 levels) in <class:Railtie>': undefined method `debug_rjs=' for ActionView::Base:Class (NoMethodError)

Check your config/environments/development.rb file, you probably have this line:

config.action_view.debug_rjs = true

Remove it. Probably best to search your entire project for any debug_rjs references and remove them all.

That method is used to wrap RJS responses in a try/catch block. It was removed in this commit to the Rails source. And it seems as if you are now getting an error from action_view when it trys to set the configuration from the application with this method .

Check your application configuration and remove any line that looks like this:

config.action_view.debug_rjs = true

It should be in your development config at config/environments/development.rb

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