S
S
smartcrio2015-01-23 10:09:00
Ruby on Rails
smartcrio, 2015-01-23 10:09:00

How is logging of user actions implemented in RoR projects?

There is a constant need to track and store a history of user actions on models. Someone removed something, updated, added. Are there any ready-made solutions for solving such a problem. I remember there was a gem - " Audited " Has anyone used it, or maybe their own implementation will be more convenient?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Burmakin, 2015-01-23
@Freika

There is a wonderful paper_trail gem: https://github.com/airblade/paper_trail. Works great in the park with the rails_admin admin gem.

D
Dmitry Polushkin, 2015-02-12
@dmitry-polushkin

paper_trail is the most advanced. However, problems can start with it when the number of records is over 100 million. It is best to move the logging to mongodb, or another document-oriented database that was created as a log repository.
I've run into problems from personal experience. In small projects, its use is justified!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question