On 8 August 2011 10:25, Erwin <[email protected]> wrote: > after using it > config.action_controller.include_all_helpers = false > > when trying to run any ApplicationController method like (testing) > > class ApplicationController < ActionController::Base > .. > def checking > debugger > end > > running in console > sc > => Debugger enabled > Loading development environment (Rails 3.1.0.rc5) > ruby-1.9.2-p290 :001 > checking > NameError: undefined local variable or method `checking' for > main:Object > > what's new about it ... ? none of the ApplicationController can be > run ...
If I understand correctly then it appears you are trying to call an ApplicationController method from the console. ApplicationController methods can only be called from the context of a controller (if that is the right way of putting it). Otherwise it does not have a controller to call the method on. Also I do not understand the significance of include_all_helpers in this. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

