diff --git a/Gemfile.lock b/Gemfile.lock index 759579e244..1cadd419f8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -147,6 +147,7 @@ GEM faker (0.3.1) ffi (1.9.14-java) gchartrb (0.8) + gherkin (2.12.2) gherkin (2.12.2-java) multi_json (~> 1.3) gli (2.14.0) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index b43d8e980e..020823e6f5 100755 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -36,12 +36,12 @@ def new redirect_to edit_task_path(@task.task_num) else flash[:error] = t('.task_was_not_created') - render 'tasks/index' + redirect_to tasks_path end rescue => e flash[:error] = e.message - render 'tasks/index' + redirect_to tasks_path end def create @@ -452,12 +452,12 @@ def clone redirect_to edit_task_path(@task.task_num) else flash[:error] = t('.task_was_not_created') - render 'tasks/index' + redirect_to tasks_path end rescue => e flash[:error] = e.message - render 'tasks/index' + redirect_to tasks_path end # GET /tasks/score/:id