Log user activities in ROR

后端 未结 5 1360
慢半拍i
慢半拍i 2021-01-30 23:25

I have an application where there are two types of user currently, Admin and Vendor, and i want to log their activities like

\"TestAdmin\" viewed transaction
\"T         


        
5条回答
  •  温柔的废话
    2021-01-31 00:00

    I have to say the answer of @Anil D is obviously coupled. It's OK for small projects, but it will cause serious problems (developing, debugging, maintaining problems) as your projects grows bigger and bigger.

    I prefer audited: (https://github.com/collectiveidea/audited), which is a simple & clean solution aiming to user activities only. It supports Rails3 and associations.

提交回复
热议问题