Thanks to this post I found the problem was with AR Mailer in Rails
2.2.2:
http://www.theirishpenguin.com/2009/01/22/bug-of-the-day-nilinclude-error-with-create_time_zone_conversion_attribute/

I needed to modify my environments/development.rb file to change:
config.cache_classes = false

To:
config.cache_classes = true


On Feb 8, 9:39 pm, jdutil <[email protected]> wrote:
> Tried that it was my first thought.   I even wiped out the db and
> started a new one and got the same problem.  The activity is tracking
> an actual user record.
>
> On Feb 8, 9:33 pm, Bruno Bornsztein <[email protected]>
> wrote:
>
> > Not sure, but looks to me like you have an orphaned activity in the database
> > (an activity item for which the user no longer exists). Look for rows in the
> > activities table with a user_id that doesn't match any id in the users
> > table.
>
> > On Sun, Feb 8, 2009 at 7:53 PM, jdutil <[email protected]> wrote:
>
> > > Does anyone know what could be causing this.  All I did was comment on
> > > a users profile, and then the activities area shows a backtrace in
> > > other users profiles.
>
> > >  NoMethodError in Base#footer_content
>
> > > Showing vendor/plugins/community_engine/app/views/activities/
> > > _activity.html.haml where line #5 raised:
>
> > > You have a nil object when you didn't expect it!
> > > You might have expected an instance of Array.
> > > The error occurred while evaluating nil.include?
>
> > > Extracted source (around line #5):
>
> > > 2:   %dt
> > > 3:     =time_ago_in_words_or_date(activity.created_at)
> > > 4:   %dd
> > > 5:     =link_to activity.user.login.capitalize, user_path
> > > (activity.user.login_slug)
> > > 6:     - if activity.item
> > > 7:       - case activity.item_type
> > > 8:         - when 'Post'
>
> > > Trace of template inclusion: vendor/plugins/community_engine/app/views/
> > > shared/_footer_content.html.haml
>
> > > Then When you try to view the profile you commented on you get this
> > > error page.
>
> > >  NoMethodError in Users#show
>
> > > Showing vendor/plugins/community_engine/app/views/users/show.html.haml
> > > where line #46 raised:
>
> > > You have a nil object when you didn't expect it!
> > > You might have expected an instance of Array.
> > > The error occurred while evaluating nil.include?
>
> > > Extracted source (around line #46):
>
> > > 43:       - @users_comments.each do |comment|
> > > 44:         %dl.vcard
> > > 45:           %dt.photo
> > > 46:             = link_to image_tag(comment.recipient.avatar_photo_url
> > > (:thumb), :alt => "#{comment.recipient.login}", :width =>
> > > '50', :height => '50'), commentable_url(comment)
> > > 47:           %dd.fn
> > > 48:             - if comment.recipient.eql?(comment.commentable)
> > > 49:               %strong= :to.l + ": #{link_to
> > > comment.recipient.login, commentable_url(comment)}"
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to