RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: customs xActive Record x
A Tour of State Machines
Episode #392Nov 17, 201293 comments

A Tour of State Machines

Here I show how three popular state machine gems can be used to clean up a list of boolean/datetime fields. I also show a custom solution which keeps track of the history of events. (12 minutes)
Validations in Rails 3
Episode #211Apr 26, 201059 comments

Validations in Rails 3

Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model. (9 minutes)
Feed Parsing
Episode #168Jun 29, 200955 comments

Feed Parsing

Learn two different techniques for parsing an RSS feed using Feedzirra in this episode! (10 minutes)
Using with_scope
Episode #5Mar 14, 200757 comments

Using with_scope

Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic! (2 minutes)
Move Find into Model
Episode #4Mar 12, 200746 comments

Move Find into Model

Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association. (2 minutes)