RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: named_scope xFree Episodes xActive Record x
named_scope
Episode #108May 19, 200869 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)
Anonymous Scopes
Episode #112Jun 02, 200870 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 Queries in Rails 3
Episode #215May 24, 201053 comments

Advanced Queries in Rails 3

Learn some advanced techniques regarding named scopes and get an introduction to Arel in this episode. (9 minutes)
Active Record Queries in Rails 3
Episode #202Feb 22, 201071 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)
Active Record Reputation System
Episode #364Jul 09, 2012105 comments

Active Record Reputation System

If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution. (10 minutes)
Searchlogic
Episode #176Aug 24, 200996 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)
Refactoring & Dynamic Delegator
Episode #212May 03, 201050 comments

Refactoring & Dynamic Delegator

Learn how to refactor a set of conditional Active Record queries using a Dynamic Delegator. (7 minutes)
Rails 2.3 Extras
Episode #152Mar 09, 200955 comments

Rails 2.3 Extras

This episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3. (9 minutes)
Contributing to Rails with Git
Episode #113Jun 09, 200836 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)
Embedded Association
Episode #189Nov 23, 200983 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)