In the Jots (like tweets) in JotRod, I needed to generate a hash on creation as the key for the Jots. So, I determined that the easiest way to do that was to include ActiveModel Callbacks.

The module is pretty simple to add to your classes. Here's a demo of how to add it to Sandra.

Sandra's repository

JotRod's repository

Download 223 MB

Download (iPod & iPhone) 37 MB

Take the 2011 Readers Survey

Podden och tillhörande omslagsbild på den här sidan tillhör Charles Max Wood. Innehållet i podden är skapat av Charles Max Wood och inte av, eller tillsammans med, Poddtoppen.