Update submissions_controller.rb