Reuse code

Hi,
I have several helper methods that I use on one view . Is there a way
to share this methods on several views ?
To be more specific in: companies_helper I’ve defined the helper
methods that I would like to use in products section.

Thanx,
Ovidiu

On 11 May 2006, at 9:06 pm, Ovidiu EFTIMIE wrote:

Hi,
I have several helper methods that I use on one view . Is there a way
to share this methods on several views ?
To be more specific in: companies_helper I’ve defined the helper
methods that I would like to use in products section.

I think all you have to do is something like this in your products
controller, but I may be wrong:

class ProductsController < ActionController
helper :companies

Either that, or if the methods are very generic, move them to
application_helper.

Kerry

Thanks Kerry . I’ll try that