Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Model Name in URL (revised)

#63 Model Name in URL (revised)

Dec 16, 2012 | 9 minutes | Active Record, Routing
A model's ID in the URL is not very helpful to the user. Consider adding the name which can also improve SEO. Learn how to override to_param, add a slug attribute, and make a catch all route for deep nesting.