Re: Multiple Submit Buttons in One Form

Dane Jensen
Sat, 16 Jul 2005 23:39:43 -0000

Hunter Hillegas wrote:

>Thanks.
>
>The problem is that all the buttons need to show the word
''Delete'' when
>rendered in the browser.
>
>They cannot be unique.
>
>Any other suggestions?
>
>
Just an idea, I haven''t tested it at all, but this might just do the
trick.

You could give the select tags names like "delete[id]" all with the
label "Delete", then @params[:delete] would give you an array with id
to
delete. Something along these line sshould work.

hth,
-Dane