How to implement an achievement system in RoR
I agree with your idea to use an Achievement model. You should probably not implement the triggers in your controllers, though. Imagine that you have two ways to post a comment; you will inevitably get code duplication. This sort of behaviour belongs in a model. Suppose you want to track the number of comments that … Read more