Re: helper :all does not include Modules

Frederick Cheung
Mon, 02 Jun 2008 07:38:50 -0000

On Jun 2, 7:11 am, Thomas Eapen
<thomas.ea...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Greetings list,
>
> I was wondering if any of you are unable to call "helper" methods
in
> your controllers even though application.rb has a call to
> "helper :all"?
>
> My views are able to call the methods but my controllers are unable to
> call them unless I "include ModuleHelper" in the controller but I
was
> under the impression that helper :all is supposed to take care of the
> "including".
>

The helper method is for including modules (or controller methods)
into views. It''s not supposed to do anything to controllers.

Fred
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com