Active Record Scopes and Arel by Jacob Swanner
1,036 views · Published 19 June 2012 · 28:29 · Indexed 23 September 2026
Channel: Confreaks · 2012 · Science & Technology
Scopes are a great way of encapsulating query logic in a granular, reusable way. This talk will cover some techniques you can use to keep those scopes as composable and portable as possible. We'll cover how to use Arel directly, while avoiding the common practice of using SQL fragments, and show you how this can make your scopes more reusable, while at the same time preventing you from using database vendor specific operators, such as ILIKE. Help us caption & translate this video! http://amara.org/v/FGix/
More from this channel
-
34:59
MongoMapper, Mixins, and Migrations - a look at managing data-model complexity by Tim Connor
-
1:13:32
Lightning Talks with Aaron Patterson and Various Presenters
-
37:02
Large scale Ruby project, challenges and Pitfalls. by Karunakar
-
10:19
Your Face in 10 minutes... with Macruby! by Haris Amin,
-
32:59
Test-driving GUIs (with RubyCocoa) by Brian Marick
-
32:59
A Rubyist's Guide to the Canvas API by H. Dean Hudson
-
29:02
Powerful Interfaces by Caike Souza
-
33:11
Testing Best Practices, or The Five Habits of Highly Effective Tests by Noel Rappin