On 25 Mar 2008, at 07:08, Suneeta Km wrote:
>
> Hi all...
>
> Can a helper method be used to reduce the repeated codes in the
> controller?
>
In the context of rails, helper tends to mean "view helper", so usualy
not. But there''s no reason you can''t stick common controller
code in a
module. If you have too much in your controllers it might be a sign
that some of that code should be in your models.
Fred
> Please help with an example.
>
> Thanks
> Suneeta
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---