Thanks Kerry . I''ll try that
On 5/11/06, Kerry Buckley <home@kerrybuckley.com>
wrote:> 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
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>