RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: search xRails 2.1 x
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)