I cannot force my link_to statement to send an HTTP put into my
controller's update method.  It appears to be using get and therefore
invoking the show method.  Here is what my view looks like (I am using
nested resources where item :has_many :costs):

<%= link_to 'Recalculate', item_cost_path(:recalc => 1), :method
=> :put, :action => :update %>

When I click on the link in a browser:

Unknown action
No action responded to show. Actions: create, destroy, edit, index,
new, and update

I have tried many variations of link_to arguments and have been unable
to make this work.  Out of ideas, so I'm hoping you can help.

Thanks!
Mark

-- 
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