This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for @rehearsal do |f| | |
.field | |
= f.label :tally | |
= f.number_field :tally | |
/ = render "e_answer_fields", :f => e_builder | |
%p | |
%b Questions: | |
- @exercise.e_questions.each do |e_question| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= semantic_form_for @rehearsal do |f| | |
= f.inputs do | |
= f.input :tally | |
%p | |
%b Questions: | |
- @rehearsal.e_questions.each do |e_question| | |
%tr | |
%td= e_question.question | |
%p | |
= f.fields_for :e_answers do |a_builder| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%b Questions: | |
- @rehearsal.e_questions.each do |e_question| | |
%tr | |
%td= e_question.question | |
%p | |
= f.fields_for :e_answers do |a_builder| | |
= render "e_answer_fields", :f => a_builder | |
= f.actions do | |
= f.action :submit, :as => :input |
NewerOlder