fixes according to houndci guidelines
This commit is contained in:
parent
5479871a30
commit
843030590e
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ class Admin::CallforpapersController < ApplicationController
|
||||||
notice: 'Call for Papers was successfully updated.')
|
notice: 'Call for Papers was successfully updated.')
|
||||||
else
|
else
|
||||||
flash.now[:error] = 'Call for Papers update failed. ' +
|
flash.now[:error] = 'Call for Papers update failed. ' +
|
||||||
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
|
@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'
|
||||||
|
|
@ -34,8 +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. ' +
|
flash.now[:error] = 'Call for Papers creation failed. ' +
|
||||||
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
|
@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