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