redirect to destination user page
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@145 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
5056fac261
commit
aa8402278a
|
@ -21,7 +21,7 @@ class FriendsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @friend.save
|
||||
flash[:notice] = 'Successfully added the new friend'
|
||||
format.html { redirect_to people_path(@people.page.title_for_url) }
|
||||
format.html { redirect_to people_path(@page.title_for_url) }
|
||||
else
|
||||
format.html { render :action => "new" }
|
||||
end
|
||||
|
|
Reference in New Issue