Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Free Episodes xRouting x
REST API Versioning
Episode #350May 16, 201262 comments

REST API Versioning

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. Here I show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers. (10 minutes)
Pretty URLs with FriendlyId
Episode #314Jan 09, 201260 comments

Pretty URLs with FriendlyId

If you are tired of model ids in the URL, overriding to_param can only get you so far. The friendly_id plugin can help by making it easy to generate a URL slug and maintain a history. (7 minutes)
Routing Walkthrough Part 2
Episode #232Sep 19, 201014 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, 201045 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)
Rack in Rails 3
Episode #222Jul 12, 20105 comments

Rack in Rails 3

The router in Rails 3 is fully compatible with Rack. Learn how to embed Sinatra into an app, handle redirects, and improve on Rails Metal. (8 minutes)
Subdomains in Rails 3
Episode #221Jul 05, 201063 comments

Subdomains in Rails 3

It is now possible to add subdomains to Rails 3 without the use of additional plugins. Learn how in this episode. (13 minutes)
Routing in Rails 3
Episode #203Mar 01, 201012 comments

Routing in Rails 3

Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features. (13 minutes)
Edit Multiple
Episode #165Jun 08, 200929 comments

Edit Multiple

Use checkboxes to select multiple records and edit them all in one form as shown in this episode. With virtual attributes you can even edit values relatively! (14 minutes)
Polymorphic Association
Episode #154Mar 23, 200986 comments

Polymorphic Association

Polymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer. (8 minutes)
Sortable Lists
Episode #147Feb 02, 200935 comments

Sortable Lists

Creating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode. (8 minutes)