I have an index page that shows each of my Customers, and each row in
the display has an Update link which routes to my update method. That
simply does a find on the Customer id from the link and sets an
instance variable for the update view.
My update view renders a partial (same one used in the new/create) and
uses the following form:
<form id="customerEditForm" method="get" controller ="Customer"
action="edit">
I have code in the edit method to get all the updated fields and
persist the changes. However, when I click on the submit button, the
update action is executed, not the edit action.
I thought it may be something to do with Rails automatic routing, so I
renamed the update and edit actions to something very unusual ("edit"
was renamed to "sally", and "update" was renamed to "frank") - same
results - I wanted sally, but got frank.
What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---