Update activities_controller.rb