This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.
See All 346 Episodes of "RailsCasts"