public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Removed some_contacts (for now)
Michael Hartl (author)
Sun Apr 27 21:45:46 -0700 2008
commit  82744da2cdf7f22c23bbdc8ae09391a67c4cd6b8
tree    2c4f5e68a2a33ae37c546803b9d0967bb1dcdacc
parent  2df72fcd22e58aaec851b236c269c9422bcf644a
...
16
17
18
19
20
21
22
23
24
25
26
 
 
 
27
28
29
...
89
90
91
92
 
93
94
95
...
16
17
18
 
 
 
 
19
20
21
22
23
24
25
26
27
28
...
88
89
90
 
91
92
93
94
0
@@ -16,14 +16,13 @@ class PeopleController < ApplicationController
0
   
0
   def show
0
     @person = Person.find(params[:id], :include => :activities)
0
- @contacts = @person.some_contacts
0
- if logged_in?
0
- @common_connections = current_person.common_connections_with(@person)
0
- end
0
     if @person.deactivated?
0
       flash[:error] = "That person has been deactivated"
0
       redirect_to home_url and return
0
     end
0
+ if logged_in?
0
+ @common_connections = current_person.common_connections_with(@person)
0
+ end
0
     if current_person?(@person)
0
       link = edit_person_path(@person)
0
       flash.now[:notice] = %(You are viewing your own profile.
0
@@ -89,7 +88,7 @@ class PeopleController < ApplicationController
0
   end
0
 
0
   def update
0
- @person = current_person
0
+ @person = Person.find(params[:id])
0
     respond_to do |format|
0
       case params[:type]
0
       when 'info_edit'

Comments

    No one has commented yet.