diff --git a/app/controllers/code_ocean/files_controller.rb b/app/controllers/code_ocean/files_controller.rb index c41712bb..ff236468 100644 --- a/app/controllers/code_ocean/files_controller.rb +++ b/app/controllers/code_ocean/files_controller.rb @@ -11,7 +11,7 @@ module CodeOcean def create @file = CodeOcean::File.new(file_params) authorize! - create_and_respond(object: @file, path: implement_exercise_path(@file.context.exercise, tab: 2)) + create_and_respond(object: @file, path: Proc.new { implement_exercise_path(@file.context.exercise, tab: 2) }) end def destroy