RailsCasts
RailsCasts
Ryan Bates
#112 Anonymous Scopes
8 minutes Posted Jun 2, 2008 at 7:00 am.
0:00
8:49
Download MP3
Show notes
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.