mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 15:14:33 +08:00
Merge pull request #86 from ZmagoD/zd_SCI_365
changed experiment create redirection [fixes SCI-365]
This commit is contained in:
commit
396325bd67
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class ExperimentsController < ApplicationController
|
||||||
if @experiment.save
|
if @experiment.save
|
||||||
flash[:success] = t('experiments.create.success_flash',
|
flash[:success] = t('experiments.create.success_flash',
|
||||||
experiment: @experiment.name)
|
experiment: @experiment.name)
|
||||||
redirect_to project_path(@project)
|
redirect_to canvas_experiment_path(@experiment)
|
||||||
else
|
else
|
||||||
flash[:alert] = t('experiments.create.error_flash')
|
flash[:alert] = t('experiments.create.error_flash')
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
|
Loading…
Add table
Reference in a new issue