Helper?

Hi all…

Can a helper method be used to reduce the repeated codes in the

controller?

Please help with an example.

Thanks
Suneeta

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs