<% form_for(@vote) do |f| %>
<%= f.error_messages %>
<% @survey_options.each do |survey_option| %>
<table>
<tr>
<td>
<%= f.radio_button 'survey_option_id', survey_option.id %>
<%= f.label(:survey_option, survey_option.name) %>
</td>
</tr>
</table>
<% end %>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
0 comments:
Post a Comment