I have the same problem with rails 2.2 and the engines version of CE. It's a
development mode bug only.

On Thu, May 14, 2009 at 2:44 PM, Andrei Erdoss <[email protected]> wrote:

> Given a fresh installation of CE EDGE (Rails 2.3 + desert 0.5), if I
> reopen a class (for example user.rb) in my host app, I'm getting an
> exception if this class includes a new relationship. I have tested
> that this a Rails 2.3 + desert 0.5 problem, since seems to work as
> expected with rails 2.2 + desert 0.5. I have checked it with tog
> (http://www.togh.com) that also uses desert and the same problem
> arise. Attached my user.rb and my overwritten template (just to call
> the new relationship).  Strack trace below.
>
> What you will see is that the exception comes from listing activities,
> I supposed this is caused for ajax or haml or something else I'm not
> familiar with, but the problem is still there.
>
> As I said, I *know* (we'll, I think) it's a problem not related to CE
> itself, but I suppose you would like to know. I have also posted a
> message in desert's mailing list about this issue.
>
> -------
>
>  NoMethodError in Base#footer_content
>
> Showing vendor/plugins/community_
> engine/app/views/activities/_activity.html.haml
> where line #8 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 #8):
>
> 5:     -if activity.can_be_deleted_by?(current_user)
> 6:       =link_to_remote image_tag("icons/delete.png", :plugin =>
> 'community_engine'), :url => activity_path(activity), :method =>
> :delete, :html => {:class => 'right'}
> 7:
> 8:     =link_to activity.user.login.capitalize,
> user_path(activity.user.login_slug)
> 9:     - if activity.item
> 10:       - case activity.item_type
> 11:         - when 'Post'
>
>
> --
> Andrei Erdoss
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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