adding missing instance variable
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@134 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
9d61ecbba3
commit
9acd85475c
|
@ -16,6 +16,7 @@ class FriendsController < ApplicationController
|
|||
# POST /friends.xml
|
||||
def create
|
||||
@friend = Friend.new(params[:friend])
|
||||
@page = @friend.destination
|
||||
respond_to do |format|
|
||||
if @friend.save
|
||||
flash[:notice] = 'Successfully added the new friend'
|
||||
|
|
Reference in New Issue