Skip to content

Instantly share code, notes, and snippets.

View Henryvw's full-sized avatar

Henry van Wagenberg Henryvw

View GitHub Profile
@Henryvw
Henryvw / todo-tweeter
Created August 29, 2015 08:44
Example Gist
todo-tweeter
"Sinatra"
Application
@Henryvw
Henryvw / rehearsals_form.html.haml
Created August 9, 2014 07:36
rough solution for how to display questions (and do an answer build for each one) on a new rehearsal
%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
@Henryvw
Henryvw / rehearsals_form.html.haml
Created August 9, 2014 07:52
rough solution for how to display questions (and do an answer build for each one) on a new rehearsal
= 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|
= 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|
= 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
= 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
Missing template doctrines/doctrines_assent.html.haml with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :jbuilder, :haml]}. Searched in:
* "/Users/Henryvw/Desktop/workspace/stoic_compass/app/views"
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/bundler/gems/activeadmin-0c83cfe0b9b4/app/views"
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/gems/kaminari-0.16.1/app/views"
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/gems/devise-3.3.0/app/views"
* "/Users/Henryvw/Desktop/workspace/stoic_compass"
* "/"
Stoic Doctrines
= @doctrines.each do |doctrine|
= render file: "doctrines#{doctrine.file_name}.html.haml"