class ActivitiesController < ApplicationController def show @activity = Activity.find(params[:id]) end def start @activity = Activity.find(params[:id]) if current_char.start_activity(@activity, queued_actions: params[:queued_actions]) redirect_to activity_path(@activity) else flash[:alert] = "You can't do that. Make sure you have the items and meet the requirements." redirect_to character_path(current_char) end end end