Hai friends,

I am really new to ROR
I have some radiobuttons...If user select a radiobutton i want to get
the id of the selected radio button to be passed as an id to the index
page of weather controller on clicking the button "view Details"
I don't know how to pass the id? Can you please help me out.

View

<% for r in @readings %>
   <%= radio_button :contact_preference, "value", :tabindex =>r.id %>
<%=h r.station.province %>
<%end%>
<%= button_to "View Details", :controller => "weather", :action =>
"index" %>

Thanks,
Veena
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to