RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Rails 3.0 x
Pagination with Kaminari
Episode #254Feb 21, 201191 comments

Pagination with Kaminari

If you need pagination in Rails 3 try out Kaminari. It is a clean, flexible solution which uses scopes to flow nicely with Active Record queries. Did I mention it also works with Mongoid? (8 minutes)
Metrics Metrics Metrics
Episode #252Feb 07, 201138 comments

Metrics Metrics Metrics

Metric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics. (7 minutes)
MetaWhere & MetaSearch
Episode #251Jan 31, 201165 comments

MetaWhere & MetaSearch

MetaWhere provides a way to do complex find conditions without SQL in Active Record. MetaSearch makes it easy to create search forms with many find options. (8 minutes)
Notifications in Rails 3
Episode #249Jan 17, 201134 comments

Notifications in Rails 3

Rails 3 comes with instrument support through the ActiveSupport::Notifications class. Call "subscribe" to listen to notifications, and "instrument" to send them. (10 minutes)
Search, Sort, Paginate with AJAX
Episode #240Nov 15, 2010124 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)
ActiveRecord::Relation Walkthrough
Episode #239Nov 07, 201042 comments

ActiveRecord::Relation Walkthrough

The new Active Record query methods in Rails 3 might seem like magic at first. But in this episode I unravel how it works by browsing the Rails 3 source code. (11 minutes)
Dynamic attr_accessible
Episode #237Oct 25, 201065 comments

Dynamic attr_accessible

It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode. (9 minutes)
Routing Walkthrough Part 2
Episode #232Sep 19, 201037 comments

Routing Walkthrough Part 2

In this episode we continue our look into the Rails 3 router by exploring the Mapper class. (13 minutes)
Routing Walkthrough Part 1
Episode #231Sep 13, 201064 comments

Routing Walkthrough Part 1

How does routing work internally in Rails 3? In this episode I'll walk you through the Rails code that makes routing possible. (13 minutes)
Upgrading to Rails 3 Part 3
Episode #227Aug 16, 201034 comments

Upgrading to Rails 3 Part 3

Here we finish up this upgrade series by removing all deprecation warnings and fixing some problems in the view. (9 minutes)