Add show functionality
This commit is contained in:
parent
cab5cc436e
commit
53d689cd91
3 changed files with 17 additions and 0 deletions
|
@ -2,4 +2,8 @@ class WorkoutsController < ApplicationController
|
|||
def index
|
||||
@workouts = Workout.all
|
||||
end
|
||||
|
||||
def show
|
||||
@workout = Workout.find(params[:id])
|
||||
end
|
||||
end
|
||||
|
|
1
app/views/workouts/show.html.erb
Normal file
1
app/views/workouts/show.html.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<%= @workout.date %>
|
Loading…
Add table
Add a link
Reference in a new issue