I have a form that I am using to try and update a field on a 'thing', However, I'm getting massive problems that is probably down to something stupid.
My code is as follows:
<% form_for :thing, :url => { :action => "update" } do |f| %>
<%= f.collection_select :status_id, Thing.statuses, :first, :last %>
<%= f.submit 'Submit' %>
<% end %>
This looks correct to me (@thing does exist BTW), however, when I submit I get
Unknown action
No action responded to 145
etc etc etc. The URL is http://localhost:3000/things/145. What am I doing wrong?