Merge pull request #86 from ZmagoD/zd_SCI_365

changed experiment create redirection [fixes SCI-365]
This commit is contained in:
Zmago Devetak 2016-08-23 16:30:48 +02:00 committed by GitHub
commit 396325bd67

View file

@ -39,7 +39,7 @@ class ExperimentsController < ApplicationController
if @experiment.save
flash[:success] = t('experiments.create.success_flash',
experiment: @experiment.name)
redirect_to project_path(@project)
redirect_to canvas_experiment_path(@experiment)
else
flash[:alert] = t('experiments.create.error_flash')
redirect_to :back