Hi James - Awesome, at least I'm not the only one.  Do you or anyone
else know of a way to keep acts_as_activity active though, without
hitting these walls?

Thanks,

Elijah

On Nov 14, 8:31 pm, ashchan <[EMAIL PROTECTED]> wrote:
> I've encountered the same problem several times. I didn't remember
> very well, but it seemed the acts_as_activity will save the user
> object in some cases, which in turn trigger an after_save callback and
> trigger an activity record again.
>
> In my project I solved this problem by removing the following callback
> in the acts_as_activity's activity.rb:
>
>  after_save :update_counter_on_user
>
> I wasn't really willing to modify the plugin but this did solving my
> problem.
>
> James Chanhttp://blog.ashchan.com
>
> On Nov 15, 5:12 am, Elijah Windsor <[EMAIL PROTECTED]> wrote:
>
> > Hi again - found the issue - the main cause of the problem was
>
> > acts_as_activity :user, :if => Proc.new{|record| record.parent.nil?}
> > in Photo.rb
>
> > I took that out and now all is well.  I think this is the second time
> > I've had a stack overflow with acts_as_activity - the first was with
> > User.rb.  Anybody else have these issues with it, or know a good fix?
>
> > Elijah
>
> > On Nov 14, 4:23 am, Elijah Windsor <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > Can someone help me with my issue with uploading pictures?  All I get
> > > is that subject and:
>
> > > stack level too deep
>
> > > I traced the stack, and it happens in :action => 'create' on the line
> > > where     @photo.user = @user.  If I take this out, it works fine.
>
> > > One more thing - it will work the first time I start mongrel - every
> > > time after that I get the SystemStackError.
>
> > > Thank you,
>
> > > Elijah
--~--~---------~--~----~------------~-------~--~----~
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