Label error notification as such.

This commit is contained in:
Stephen Caudill 2010-09-26 16:10:13 -04:00
parent 8d17b3537c
commit 43fa70f90b

View file

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