Answer the question
In order to leave comments, you need to log in
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
There is a wonderful paper_trail gem: https://github.com/airblade/paper_trail. Works great in the park with the rails_admin admin gem.
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 questionAsk a Question
731 491 924 answers to any question