Guest User

Untitled

a guest
Oct 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <% @questions.each do |question| %>
  2. <div class="control-group">
  3. <%= f.label question.name, question.name, :class => 'control-label' %>
  4. <div class="controls">
  5. <% question.answers.each do |answer| %>
  6. <%= f.radio_button "customer_surveys[#{question.id}]", answer.id %> <%= answer.name %><br />
  7. <% end %>
  8. </div>
  9. </div>
  10. <% end %>
Add Comment
Please, Sign In to add comment