RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: named_scope x
Backbone on Rails Part 1
Episode #323 – Feb 08, 2012 – 207 comments

Backbone on Rails Part 1

In this first part of a two part series you will learn basic Backbone concepts including models, collections, routers, views and events. The backbone-on-rails gem is used for Rails integration with the asset pipeline. (18 minutes)
Multitenancy with Scopes
Episode #388 – Oct 20, 2012 – 120 comments

Multitenancy with Scopes

A multi-tenant application can be difficult to implement because the data for each tenant must be completely separate. Here I show how to do this using subdomains and default scopes in Active Record. (12 minutes)
Active Admin
Episode #284 – Sep 19, 2011 – 133 comments

Active Admin

Active Admin allows you to quickly build an admin interface with just a few commands. Not only does it look great, but it is very customizable as shown in this episode. (12 minutes)
Active Record Queries in Rails 3
Episode #202 – Feb 22, 2010 – 71 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)
A Tour of State Machines
Episode #392 – Nov 17, 2012 – 93 comments

A Tour of State Machines

Here I show how three popular state machine gems can be used to clean up a list of boolean/datetime fields. I also show a custom solution which keeps track of the history of events. (12 minutes)
Active Record Reputation System
Episode #364 – Jul 09, 2012 – 105 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 #176 – Aug 24, 2009 – 96 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)
Hstore
Episode #345 – Apr 24, 2012 – 99 comments

Hstore

With hstore you can add schema-less data to PostgreSQL. This allows you to store model attributes without creating separate database columns. Watch how to do this using the activerecord-postgres-hstore gem. (10 minutes)
I18n (revised)
Episode #138 – Mar 29, 2012 – 79 comments

I18n (revised)

Translate a site into other languages through internationalization (I18n). Here I show how to store a locale in the URL and manage translated text through YAML files. (10 minutes)
Search, Sort, Paginate with AJAX
Episode #240 – Nov 15, 2010 – 124 comments

Search, Sort, Paginate with AJAX

Many administration pages have search, sorting, and pagination on the index page. See how to add all of this including AJAX. (13 minutes)