Submit_tag

How can i use the submit_tag method (from: actionView::FormTagHelper)
to create various submit buttons and chose the right action in accord to
the button that i pushed?

Ivan M. wrote:

How can i use the submit_tag method (from: actionView::FormTagHelper)
to create various submit buttons and chose the right action in accord to
the button that i pushed?

I use javascript and button html tags to do this.


Simo
addsw.it

OK!
Thanks. I found also another method,if it could interest you:

<%= form_tag (:action => :interfaccia) %>
<%= select_tag (:operator, options_for_select(%w{ ivan bambo ask},
@params[:operator])) %>
<%= submit_tag (“premi”) %>
<%= submit_tag (“calca”) %>
<%= end_form_tag %>

Ivan.

Simo AD.D.SW wrote:

I use javascript and button html tags to do this.


Simo
addsw.it