I would like to know what the suggested practice is for having multiple
submit buttons on a relatively complicated input page.
Let’s use the example of a Contact. There is lots of info there,
including name, address, phone number. There is also a list of “contact
associations” which can be modified on the same page.
Ideally, the user could have one “Update” button to update all the
regular information and then another button to do the “Add contact
association”. But each association would also have a “Delete” button
to remove that association.
It’s been suggested that POSTs be used for delete behavior rather than
regular links. My typical way of doing this is to use “submit tags”
within forms. But these aren’t well suited for inline behavior since
you can’t nest forms and they also have problems since they are blocks.
So, what’s the “right” way to do this? link_to with the :post=>true?
button_to (not my favorite due to the nested form difficulty)