On May 28, 2009, at 8:13 AM, JL Smith wrote:

>
> First, get familiar with model callbacks if you're not already because
> you don't want to put this logic in the controller:

You might... the problem with the callbacks is you don't get access to  
the user who did it (depending on how they've logged in), nor can you  
ignore any trivial changes -- although that might not be a requirement  
here...

Below was my solution for selectively logging actions...

http://pjkh.com/articles/2009/02/02/creating-an-audit-log-in-rails

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to