Showing 3 videos tagged with scope

Railscast - Episode 5: Using with_scope

00:02:50 railscasts.com
Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!

Railscast - Episode 76: scope_out

00:06:38 railscasts.com
The scope_out plugin will generate several helpful find methods for you automatically! It's the best way to move the find conditions into your model. Watch this episode for details.

Railscast - Episode 112: Anonymous Scopes

00:08:49 railscasts.com
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.