fixes according to houndci guidelines
This commit is contained in:
parent
e3d21de1cb
commit
5479871a30
1 changed files with 5 additions and 3 deletions
|
|
@ -18,10 +18,11 @@ class Admin::CallforpapersController < ApplicationController
|
||||||
@conference.short_title),
|
@conference.short_title),
|
||||||
notice: 'Call for Papers was successfully updated.')
|
notice: 'Call for Papers was successfully updated.')
|
||||||
else
|
else
|
||||||
flash.now[:error] = 'Call for Papers update failed. ' + @cfp.errors.full_messages.map {|e| e.humanize + "."}.join(" ")
|
flash.now[:error] = 'Call for Papers update failed. ' +
|
||||||
|
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
|
||||||
|
|
||||||
@url = admin_conference_callforpaper_path(@conference.short_title, @cfp)
|
@url = admin_conference_callforpaper_path(@conference.short_title, @cfp)
|
||||||
render action: "index"
|
render action: 'index'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -33,7 +34,8 @@ class Admin::CallforpapersController < ApplicationController
|
||||||
@conference.short_title),
|
@conference.short_title),
|
||||||
notice: 'Call for Papers was successfully created.')
|
notice: 'Call for Papers was successfully created.')
|
||||||
else
|
else
|
||||||
flash.now[:error] = 'Call for Papers creation failed. ' + @cfp.errors.full_messages.map {|e| e.humanize + "."}.join(" ")
|
flash.now[:error] = 'Call for Papers creation failed. ' +
|
||||||
|
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
|
||||||
|
|
||||||
@url = admin_conference_callforpapers_path(@conference.short_title)
|
@url = admin_conference_callforpapers_path(@conference.short_title)
|
||||||
render action: "index"
|
render action: "index"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue