Error Nomethoderror: Undefined Method 'Debug_Rjs=' for Actionview::Base:Class

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

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

Undefined method `cache_template_extensions=' for ActionView::Base:Class (NoMethodError)

Remove this line (from config/environments/development.rb or config/environment.rb:15)

config.action_view.cache_template_extensions = false 

Redmine email configuration: undefined method `email_delivery=' for ActionMailer::Base:Class

What version of redmine are you using?

The current version doesn't use email.yml anymore, but configuration.yml for email settings.

From the commit message of r4752:

Email delivery settings that were stored in config/email.yml should be
moved to this new configuration file.

Rails 3.1.0 - undefined method `page_cache_extension' for ActionController::Base:Class

somewhere I've read that it could be caused because of empty database - do You have one? Check if there You have any records ;) This resolved my problem with it.

Rails 3.1 AJAX form - ActionView::Template::Error (undefined method `gsub' for #ActionDispatch::Flash::FlashHash:0x00000102b73b78):

Rails has changed the way some things work in 3.1, from what I understand Rails 3.1 is not using Hash for the FlashHash any more and they now are basing it off of Enumerable. Here is an answer that goes into more detail. You should be able to use:

flash.discard(:notice)

Instead of the old:

flash.delete(:notice) 

rvm ruby 1.9.2 and Rails 3.1 can't start server

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.



Related Topics



Leave a reply



Submit