Skip to content

Instantly share code, notes, and snippets.

@Henryvw
Created August 13, 2014 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Henryvw/600f9d705d74bd7ad6cd to your computer and use it in GitHub Desktop.
Save Henryvw/600f9d705d74bd7ad6cd to your computer and use it in GitHub Desktop.
= form_for @rehearsal do |f|
.field
= f.label :tally
= f.number_field :tally
%p
%b Questions:
- @rehearsal.exercise.e_questions.each do |e_question|
%tr
%td= e_question.question
%p
.field
= f.fields_for :e_answers do |e_builder|
= render "e_answer_fields", :f => e_builder
.actions
= f.submit 'Save'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment