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 ...
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Aug-08 09:33 UTC
Re: config.action_controller.include_all_helpers = false NEW
On 8 August 2011 10:25, Erwin <yves_dufour-ee4meeAH724@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.