Label error notification as such.
This commit is contained in:
parent
8d17b3537c
commit
43fa70f90b
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ class AspectsController < ApplicationController
|
||||||
if @aspect.valid?
|
if @aspect.valid?
|
||||||
flash[:notice] = I18n.t('aspects.create.success')
|
flash[:notice] = I18n.t('aspects.create.success')
|
||||||
else
|
else
|
||||||
flash[:notice] = I18n.t('aspects.create.failure')
|
flash[:error] = I18n.t('aspects.create.failure')
|
||||||
end
|
end
|
||||||
respond_with :location => aspects_manage_path
|
respond_with :location => aspects_manage_path
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue