This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.

Read more at the source