RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: resources xActive Record x
Refactoring & Dynamic Delegator
Episode #212 – May 03, 2010 – 50 comments

Refactoring & Dynamic Delegator

Learn how to refactor a set of conditional Active Record queries using a Dynamic Delegator. (7 minutes)
Active Record Queries in Rails 3
Episode #202 – Feb 22, 2010 – 71 comments

Active Record Queries in Rails 3

Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes. (10 minutes)
Embedded Association
Episode #189 – Nov 23, 2009 – 83 comments

Embedded Association

Learn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask. (14 minutes)
Searchlogic
Episode #176 – Aug 24, 2009 – 96 comments

Searchlogic

Searchlogic makes searching models easier than ever with its assortment of named scopes. In this episode I show you how to create simple and advanced searches. (13 minutes)
Polymorphic Association
Episode #154 – Mar 23, 2009 – 125 comments

Polymorphic Association

Polymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer. (8 minutes)
Tableless Model
Episode #193 – Dec 21, 2009 – 55 comments

Tableless Model

If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode. (8 minutes)
Include vs Joins
Episode #181 – Sep 28, 2009 – 73 comments

Include vs Joins

The :include and :joins options for the find method can be a little confusing because they are so similar. In this episode I show specifically when to use which option. (11 minutes)
Seed Data
Episode #179 – Sep 14, 2009 – 64 comments

Seed Data

Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files. (7 minutes)
7 Security Tips
Episode #178 – Sep 07, 2009 – 64 comments

7 Security Tips

Security is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection. (14 minutes)
Self-Referential Association
Episode #163 – May 25, 2009 – 88 comments

Self-Referential Association

Creating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that. (14 minutes)