%= link_to 'Create', new_workout_path %>
<% @workouts.each do |workout| %>
-
<%= link_to workout.date, workout %> [
<%= link_to 'Edit', edit_workout_path(workout) %> |
<%= link_to 'Delete', workout_path(workout),
data: { confirm: 'Are you sure?' }, :method => :delete %>
]
<% end %>