13 lines
217 B
Ruby
13 lines
217 B
Ruby
class WorkoutsController < ApplicationController
|
|
def index
|
|
@workouts = Workout.all
|
|
end
|
|
|
|
def show
|
|
@workout = Workout.find(params[:id])
|
|
end
|
|
|
|
def edit
|
|
@workout = Workout.find(params[:id])
|
|
end
|
|
end
|