ERROR NoMethodError: undefined method `debug_rjs=' for ActionView::Base:Class ERROR NoMethodError: undefined method `debug_rjs=' for ActionView::Base:Class ruby ruby

ERROR NoMethodError: undefined method `debug_rjs=' for ActionView::Base:Class


If you'd like to use jQuery instead of RJS for an existing application, delete or comment the following line from config/environments/development.rb

# config.action_view.debug_rjs = true


RJS has been abstracted out of Rails 3.1 and JQuery is the new default.

http://weblog.rubyonrails.org/2011/4/21/jquery-new-default

If you would like to use RJS, you need to include

gem 'prototype-rails'

in your Gemfile


You may want to add them to your app/assets/javascripts/application.js:

//= require prototype//= require prototype_ujs//= require effects//= require dragdrop//= require controls

https://github.com/rails/prototype-rails/blob/master/README#L15-19