From aa8402278a6ecceefaf66bd0608a8760eb1e50e0 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 6 Feb 2008 19:14:47 +0000 Subject: [PATCH] redirect to destination user page git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@145 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/controllers/friends_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/friends_controller.rb b/app/controllers/friends_controller.rb index d31829c..16d17e7 100644 --- a/app/controllers/friends_controller.rb +++ b/app/controllers/friends_controller.rb @@ -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