We have an app with an extensive admin section. We got a little trigger happy with features (as you do) and are looking for some quick and easy way to monitor ‘who uses what’.
Ideally a simple gem that will allow us to track controller/actions on a per user basis to build up a picture of the features that are used and those that are not.
Anything out there that you’d recommend..
Thanks
Dom
I don’t know that there’s a popular gem or plugin for this; in the past, I’ve implemented this sort of auditing as a
before_filterin ApplicationController:from memory:
This assumes that you’re using something like restful_authentication to get current user, of course.
EDIT: Depending on how your associations are set up, you’d do even better to replace the Audit.create bit with this:
Scoping creations via ActiveRecord assoiations == best practice