Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Active Record x
Beta Invitations
Episode #124Aug 25, 200855 comments

Beta Invitations

You know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode. (22 minutes)
Thinking Sphinx
Episode #120Jul 28, 200891 comments

Thinking Sphinx

If you need a full text search engine, Thinking Sphinx is a great solution. See why in this episode. (12 minutes)
Caching in Rails 2.1
Episode #115Jun 23, 200848 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)
Contributing to Rails with Git
Episode #113Jun 09, 200814 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)
Anonymous Scopes
Episode #112Jun 02, 200844 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)
Advanced Search Form
Episode #111May 26, 200883 comments

Advanced Search Form

If you need to create an advanced search with a lot of fields, it may not be ideal to use a GET request as I showed in episode 37. In this episode I will show you how to handle this by creating a Search resource. (7 minutes)
Tracking Attribute Changes
Episode #109May 21, 200824 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)
named_scope
Episode #108May 19, 200846 comments

named_scope

The named_scope method in Rails 2.1 makes performing finds on models very elegant and convenient. See how in this episode. (11 minutes)
Site Wide Announcements
Episode #103Apr 28, 200840 comments

Site Wide Announcements

Sometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode. (13 minutes)
Refactoring Long Methods
Episode #91Feb 03, 200832 comments

Refactoring Long Methods

In this episode I walk you through an exercise in refactoring by taking a long method and making it more concise. (7 minutes)