This commit is contained in:
Stella Rouzi 2015-10-17 16:57:48 +03:00
parent 2e692f7ea5
commit 01086813af
37 changed files with 221 additions and 190 deletions

View file

@ -12,8 +12,10 @@ module Admin
# PATCH/PUT /:conference/contact
def update
if @contact.update(contact_params)
redirect_to edit_admin_conference_contact_path, notice: 'Contact details were successfully updated.'
flash[:notice] = 'Contact details were successfully updated.'
redirect_to edit_admin_conference_contact_path
else
flash[:error] = 'Contact details were not updated.'
render :edit
end
end