MatheusJardimB
MatheusJardimB

Reputation: 3677

How to keep log of user actions in a Rails 3 app?


I want to keep automatically track of user's actions in my rails 3 app.
I mean, when a user buy a stuff or delete a record, I want to have something like this:

| User | Action | Model | IP | DateTime |
|User 1 | delete | Product | xxx.xxx.xxx.xxx | 01-10-10 |
|User 2 | create | Product | xxx.xxx.xxx.xxx | 01-10-10 |
...

Is there a gem that do this automagically?

Thanks in advance

Upvotes: 0

Views: 1182

Answers (2)

asitmoharna
asitmoharna

Reputation: 1532

acts_as_audited gem can help you here.

Upvotes: 1

Andrei S
Andrei S

Reputation: 6516

Check out the Active Record Versioning category in ruby-toolbox, there are a lot of gems doing auditing, and more

Upvotes: 1

Related Questions