making instantiating an empty contact

This commit is contained in:
zhitomirskiyi 2011-02-17 17:30:04 -08:00
parent 23754ec3fb
commit 8196ee33dd

View file

@ -24,6 +24,9 @@ class PhotosController < ApplicationController
if @contact
@aspects_with_person = @contact.aspects
@contacts_of_contact = @contact.contacts
else
@contact = Contact.new
@contacts_of_contact = []
end
@posts = current_user.visible_photos.where(