Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jonathan Simmons's Profile

GitHub User: jonathansimmons


Comments by Jonathan Simmons


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

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

{ group_id:, user_ids: [user_ids] })