Some additional information:
In the Rails log, I see this as the last SQL statement prior to
erroring out:
User Load (0.2ms) SELECT * FROM "users" WHERE ("users"."id" = 5)
AND (users.activated_at IS NOT NULL)
It appears this is coming from line 166 of user.rb, which is part of
User.find_by_activity. Specifically, line 166 is grabbing all the
users that were found by the Activity lookup, and does a find on User
based on the foreign key user_id to get the actual users
activities.map{|a| find(a.user_id) }
It is not clear to me how the WHERE clause above gets added to what
seems to be a normal find(id) (something to do with a find with a
scope?), but clearly this find is returning nil because there is no
user 5 that is also active.
--
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en.