summaryrefslogtreecommitdiff
path: root/app/controllers/activities_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/activities_controller.rb')
-rw-r--r--app/controllers/activities_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
new file mode 100644
index 0000000..a535f99
--- /dev/null
+++ b/app/controllers/activities_controller.rb
@@ -0,0 +1,11 @@
+class ActivitiesController < ApplicationController
+ def show
+ @activity = Activity.find(params[:id])
+ end
+
+ def start
+ @activity = Activity.find(params[:id])
+ current_char.update(activity: @activity, activity_started_at: Time.now)
+ redirect_to action: :show
+ end
+end