mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 08:34:49 +08:00
change experiment path
This commit is contained in:
parent
75c52d20e5
commit
322be64b5f
1 changed files with 2 additions and 1 deletions
|
@ -68,10 +68,11 @@ class ExperimentsController < ApplicationController
|
||||||
if @experiment.save
|
if @experiment.save
|
||||||
flash[:success] = t('experiments.update.success_flash',
|
flash[:success] = t('experiments.update.success_flash',
|
||||||
experiment: @experiment.name)
|
experiment: @experiment.name)
|
||||||
|
redirect_to canvas_experiment_path(@experiment)
|
||||||
else
|
else
|
||||||
flash[:alert] = t('experiments.update.error_flash')
|
flash[:alert] = t('experiments.update.error_flash')
|
||||||
|
redirect_to :back
|
||||||
end
|
end
|
||||||
redirect_to :back
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def archive
|
def archive
|
||||||
|
|
Loading…
Add table
Reference in a new issue