Displaying 2 results from an estimated 2 matches for "calca".
Did you mean:
calc
2006 Mar 24
1
Radio Button Tag and hash @Params.
...fter
i used this code to select a attribute subsets of them :
<% i=''0''%>
<% for @obj in @prove %>
<% @key='':key''+i%>
<%= radio_button_tag (@key,@obj) %>
<% i=i+''1'' %>
<% end %>
<%= submit_tag ("calca") %>
<%= end_form_tag %>
But when i come back to the controller, it''is impossible select the
right radio button value with the code :
@result=@params[@key];
The compiler don''t understand the Hash key that i used!.
The compiler want to use something such as: ra...
2006 Feb 27
2
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?
--
Posted via http://www.ruby-forum.com/.