From 421078bd0b477da113f455a2034850dfebedf0a2 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Thu, 25 Nov 2010 16:18:39 -0800 Subject: [PATCH] if you create an aspect from the aspect manage page it redirects back there --- app/controllers/aspects_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 46192cd97..89597df99 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -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)