diff --git a/app/controllers/guidances_controller.rb b/app/controllers/guidances_controller.rb index d8db473..637bc2e 100644 --- a/app/controllers/guidances_controller.rb +++ b/app/controllers/guidances_controller.rb @@ -91,6 +91,7 @@ redirect_to admin_show_guidance_path(@guidance), notice: _('Guidance was successfully created.') else load_select_box_content + flash[:notice] = generate_error_notice(@guidance) render action: "admin_new" end end @@ -107,6 +108,7 @@ redirect_to admin_show_guidance_path(params[:guidance]), notice: _('Guidance was successfully updated.') else load_select_box_content + flash[:notice] = generate_error_notice(@guidance) render action: "admin_edit" end end