summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/activities_controller.rb2
-rw-r--r--app/controllers/look_controller.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
index 37403c7..a1a1835 100644
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -6,7 +6,7 @@ class ActivitiesController < ApplicationController
def start
@activity = Activity.find(params[:id])
if current_char.start_activity(@activity, queued_actions: params[:queued_actions])
- redirect_to activity_path(@activity)
+ redirect_to look_path
else
message = "You can't do that."
message += " (requires #{@activity.requirements&.join(", ")})" if @activity.requirements
diff --git a/app/controllers/look_controller.rb b/app/controllers/look_controller.rb
new file mode 100644
index 0000000..17cbbcb
--- /dev/null
+++ b/app/controllers/look_controller.rb
@@ -0,0 +1,4 @@
+class LookController < ApplicationController
+ def show
+ end
+end