When I add the acts_as_activity :user to a few of my models, after I
try and create a new object, I receive the follow message (My_Item is
my example model for this post)

NoMethodError (undefined method `user_id' for #<My_Item:0x5f4bdd4>):
  vendor/plugins/community_engine/plugins/activity_tracker/lib/
activity_tracker.rb:60:in `send'
  vendor/plugins/community_engine/plugins/activity_tracker/lib/
activity_tracker.rb:60:in `create_activity_from_self'
  vendor/plugins/community_engine/plugins/activity_tracker/lib/
activity_tracker.rb:25:in `acts_as_activity'
  app/controllers/my_item_controller.rb:78:in `create'
  app/controllers/my_item_controller.rb:77:in `create'
  haml (2.2.16) lib/sass/plugin/rails.rb:19:in `process'
  -e:2:in `load'
  -e:2

Does anyone have an idea, this is happening on a few of my model?

I have added this to the model

acts_as_activity :user

My controller is very simple for create,

@myitem = MyItem.new(params[:myitem])

and then I save it in a respond block.

Thanks in advance.

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