if you create an aspect from the aspect manage page it redirects back there

This commit is contained in:
zhitomirskiyi 2010-11-25 16:18:39 -08:00 committed by Raphael
parent eb314aa300
commit 421078bd0b

View file

@ -18,6 +18,7 @@ class AspectsController < ApplicationController
end
def create
puts "horray" if request.env['HTTP_REFERER']
@aspect = current_user.aspects.create(params[:aspect])
if @aspect.valid?
flash[:notice] = I18n.t('aspects.create.success', :name => @aspect.name)