Multiple Submit Buttons in One Form

Hunter Hillegas
Sat, 16 Jul 2005 22:53:11 -0000

** Sorry, I let the last one go early! **

In transitioning a WebObjects app to Rails, I''ve run into this
question:

How do I use multiple submit buttons in a single form?

I have a list of items that are in the database. Each list item has a
''Delete'' button that looks like this:

<a class="rec"
href="/admin/user_admin/edit/4"> <input
class="del"
name="4" type="submit" value="Delete"
/>

How can I have my destroy method pick up the right item?

Anyone done this?

Cheers,
Hunter