Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
= semantic_form_for [current_user, ew.exercise], :url => user_exercise_log_entries_path(current_user, ew.exercise) do |exercise|
%th.set Set #
%th.reps Reps
%th.weight Weight
= exercise.semantic_fields_for :log_entries do |log_entry|
= render 'log_entry_fields', :f => log_entry
= 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