2013-08-10 08:36:43 -04:00
|
|
|
<%= 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 %>">
|
2013-08-10 08:36:43 -04:00
|
|
|
<%= link_to workout.date, workout %> [
|
2013-08-05 01:07:11 -04:00
|
|
|
<%= link_to 'Edit', edit_workout_path(workout) %> |
|
2013-08-10 08:36:43 -04:00
|
|
|
<%= 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>
|