Teach Me To Code » Screencasts

ActiveModel Callbacks

11.09.2011 - By Charles Max WoodPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

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

More episodes from Teach Me To Code » Screencasts