allpro/app/views/workouts/index.html.erb

14 lines
376 B
Text
Raw Permalink Normal View History

<%= link_to 'Create', new_workout_path %>
2013-08-04 20:58:01 -04:00
<ul>
<% @workouts.each do |workout| %>
2013-08-05 01:07:11 -04:00
<li id="workout_<%= workout.id %>">
<%= link_to workout.date, workout %> [
2013-08-05 01:07:11 -04:00
<%= link_to 'Edit', edit_workout_path(workout) %> |
<%= link_to 'Delete', workout_path(workout),
data: { confirm: 'Are you sure?' }, :method => :delete %>
2013-08-05 01:07:11 -04:00
]
</li>
2013-08-04 20:58:01 -04:00
<% end %>
</ul>