mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 06:01:12 +00:00
add render in update method
render edit is added so that error and flash message could trigger after the form is submitted.
This commit is contained in:
parent
12f10c7dcd
commit
49c59f1d7a
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ class BoothsController < ApplicationController
|
|||
notice: 'Booth successfully updated!'
|
||||
else
|
||||
flash.now[:error] = "Booth could not be updated. #{@booth.errors.full_messages.to_sentence}."
|
||||
render :edit
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue