Skip to content

Instantly share code, notes, and snippets.

@dfischer
Created August 18, 2012 00:09
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 dfischer/645232a6f8e23c6119f5 to your computer and use it in GitHub Desktop.
Save dfischer/645232a6f8e23c6119f5 to your computer and use it in GitHub Desktop.
= semantic_form_for [current_user, ew.exercise], :url => user_exercise_log_entries_path(current_user, ew.exercise) do |exercise|
%table
%thead
%tr
%th.set Set #
%th.reps Reps
%th.weight Weight
%tbody
= exercise.semantic_fields_for :log_entries do |log_entry|
= render 'log_entry_fields', :f => log_entry
.links
= link_to_add_association 'Add Set', exercise, :log_entries
= exercise.actions do
= exercise.action :submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment