-
-
Save dfischer/645232a6f8e23c6119f5 to your computer and use it in GitHub Desktop.
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 [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