Hi,
I’ve a little problem using the Radio Button Tag.
I use the " @prove=MODEL.column_names() " to keep attribute names of a
table. After
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: radio_button_tag (:key,@obj)
;
Some ideas?