if you create an aspect from the aspect manage page it redirects back there
This commit is contained in:
parent
eb314aa300
commit
421078bd0b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue