RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: resources xActive Record x
Caching in Rails 2.1
Episode #115 – Jun 23, 2008 – 78 comments

Caching in Rails 2.1

Rails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode. (8 minutes)
Anonymous Scopes
Episode #112 – Jun 02, 2008 – 70 comments

Anonymous Scopes

The scoped method allows you to generate named scopes on the fly. In this episode I show how to use anonymous scopes to improve the conditional logic which was used in the previous episode on advanced search form. (8 minutes)
Tracking Attribute Changes
Episode #109 – May 21, 2008 – 47 comments

Tracking Attribute Changes

Rails 2.1 keeps track of the changes you make to a model's attributes. It also allows you to see what the previous value was. But watch out for the gotcha! See this episode for details. (7 minutes)
Contributing to Rails with Git
Episode #113 – Jun 09, 2008 – 36 comments

Contributing to Rails with Git

If you want Rails to behave a certain way, try changing it and submitting a patch. This episode will show how to do exactly this using Git. (11 minutes)
Hacking ActiveRecord
Episode #62 – Jul 25, 2007 – 46 comments

Hacking ActiveRecord

Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn't support this, but that doesn't mean we can't add it. This episode will show you how to open up an existing class and change its behavior. (11 minutes)