blob: d4ecc65bfdc486434ee25592c1cff49b8b68f456 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class ActivitiesController < ApplicationController
def index
@activities = Activity.all.order(:name)
end
def show
@activity = Activity.find(params[:id])
end
def start
@activity = Activity.find(params[:id])
start_activity(@activity)
end
def costs_and_requirements
@activity = Activity.find(params[:id])
render partial: "activities/costs_and_requirements"
end
end
|