routing episodes
#203
Mar 01, 2010
26 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.
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!
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.
Sortable Lists
Creating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode.
Nested Resources
In this episode I show how to nest resources through routing and go into some new additions in Rails 2.2.
Beta Invitations
You know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode.
Subdomains
Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode.
Generating RSS Feeds
See how to easily generate and link to an RSS feed using new features in Rails 2.0. Watch this episode or details.
Generate Named Routes
This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.
Custom Routes
In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters.







