Displaying 1 result from an estimated 1 matches for "answer_src".
2008 Mar 23
1
radio buttons - how to identify record using value?
...d for specifying which
answer was selected by the user. The selected_answer is also an Answer
through a foreign key.
Here''s the question: What do I use for the value of the radio button?
I''ve tried the following:
<%= f.radio_button :selected_answer, :a1 %><%= @qa.a1.answer_src %>
<br />
<%= f.radio_button :selected_answer, :a2 %><%= @qa.a2.answer_src %>
<br />
<%= f.radio_button :selected_answer, :a3 %><%= @qa.a3.answer_src %>
<br />
<%= f.radio_button :selected_answer, :a4 %><%= @qa.a4.answer_...