Merge with master

This commit is contained in:
Chrisbr 2014-05-12 15:26:18 +02:00
commit d97e3603b1
8 changed files with 125 additions and 33 deletions

View file

@ -15,11 +15,21 @@ class Admin::ConferenceController < ApplicationController
def create
@conference = Conference.new(params[:conference])
<<<<<<< HEAD
if @conference.save
redirect_to(admin_conference_path(id: @conference.short_title),
notice: 'Conference was successfully created.')
else
render action: 'new'
=======
if @conference.valid?
@conference.save
redirect_to(admin_conference_path(id: @conference.short_title),
notice: 'Conference was successfully created.')
else
redirect_to(new_admin_conference_path,
flash: { error: @conference.errors.full_messages.join('! ') })
>>>>>>> 374efd311fb7f82d0e8257a62675a663904708d5
end
end