SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

NoMethodError in PeopleController#show

Open motu2510 opened this issue 16 years ago • 2 comments

undefined method `profile' for nil:NilClass

app/controllers/people_controller.rb:22:in show' /lib/mongo_mapper/clear_dev_memory.rb:22:incall'

commit 99ad001d28bcd5875af4dbfe356641a9f6524b1d Author: Raphael [email protected] Date: Fri Sep 17 09:52:31 2010 -0700 Fix websocket spec, take out puts in by_webfinger diff --git a/app/models/person.rb b/app/models/person.rb index 48e8b08..ac4a5df 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -85,7 +85,7 @@ class Person local_person elsif !identifier.include?("localhost") && !opts[:local] begin - puts "begin finger" + Rails.logger.info("Webfingering #{identifier}") f = Redfinger.finger(identifier) rescue SocketError => e raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/ diff --git a/spec/lib/websocket_spec.rb b/spec/lib/websocket_spec.rb index 233f7be..762a725 100644 --- a/spec/lib/websocket_spec.rb +++ b/spec/lib/websocket_spec.rb @@ -17,8 +17,9 @@ describe Diaspora::WebSocket do end it 'The queued job should reach Magent' do - Magent.should_receive(:push) @post.socket_to_uid(@user.id, :aspect_ids => @aspect.id) + channel = Magent::GenericChannel.new('websocket') + channel.message_count.should == 1 end end params {"action"=>"show", "id"=>"4c94c0849932aa057f000020", "controller"=>"aspects"} websocket status socket closed

EDIT: Same problem with the latest commit:

commit 7d0db11444838b2b07318a8451850e0b9e22aa03 Author: ZTurtleMan [email protected] Date: Sat Sep 18 11:08:24 2010 +0800

motu2510 avatar Sep 18 '10 20:09 motu2510

Having this issue as well when clicking the photo of a friend to view their profile.

silvernode avatar Sep 20 '10 07:09 silvernode

Me too. Just clicking in the photo of a friend is enough.

neuromancer avatar Sep 22 '10 08:09 neuromancer