On Mar 10, 7:26 pm, Greg Ma <[email protected]> wrote:

>
> this is how i try to call my controller method:
> <%=link_to "Add",:action => :add_ingredient,:id => @product %>
>

Try this <%=link_to "Add",:action => "add_ingredient",:id => @product
%>

Note that the action name is a string.

Hope this helps

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

Reply via email to