Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Jonathan Simmons's Profile

GitHub User: jonathansimmons

Site: hivemindlabs.com

Comments by Jonathan Simmons

Avatar

You can only set one the recipient and owner on the actual column. Any other dat you want to store could be added in params:

@other_user.create_activity key: 'user.added_to_group', owner: current_user, params: { group_id: group.id }

You could also store multiple users_ids in an array in params to denote which users were added.

{ group_id: group.id, user_ids: [user_ids] })