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
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.