diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/activities_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb index 8e18ec9..2f9e9a5 100644 --- a/app/controllers/activities_controller.rb +++ b/app/controllers/activities_controller.rb @@ -1,4 +1,8 @@ class ActivitiesController < ApplicationController + def index + @activities = Activity.all.order(:name) + end + def show @activity = Activity.find(params[:id]) end |