fixes according to houndci guidelines

This commit is contained in:
Stella 2014-05-04 13:30:32 +03:00
parent 5479871a30
commit 843030590e

View file

@ -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"