I want to insert values to activities table using public_activity gem, but am not able to store records to parameters column in correct format. How to achieve this??
ActiveRecord::Base.connection.execute("INSERT INTO `activities`(`trackable_id`, `trackable_type`,
`owner_id`, `owner_type`, `key`, `parameters`, `created_at`, `updated_at`)
VALUES ('#{event_resource.resource_id}', '#{event_resource.resource_type}', '#{event.user.id}',
'User', '#{event.action_type}', ':description: '#{event.description}', '#{event.created_at}', '#{event.updated_at}')")