On Jun 14, 5:31 am, Constantin Gavrilescu
<comisarulmoldo...@gmail.com> wrote:
>
> Here I want to use another's helper column_list:
> <%=render 'companies/companies', :object =>
> @customers_employees, :locals => {:column_list =>
> CustomersEmployeesController.new.method(:column_list)} %>
>
> I get this error:
> undefined method `column_list' for class
> `CustomersEmployeesController'
>
> How can I pass the reference to the right helper method?

helper_methods are not methods of the controller - they are methods of
the associated helper module (usually CustomerEmployeesHelper in this
case). Does that help ?

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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to