RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Charts
Promote
#63 Model Name in URL
6 minutes
Posted Jul 27, 2007 at 12:00 am.
0:00
6:07
Add to My Queue
Download
MP3
Share
episode
Share at current time
Show notes
By default, Rails uses the model's id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.
Watch Video
Previous
#62 Hacking ActiveRecord
Next
#64 Custom Helper Modules
← See all 346 episodes of RailsCasts
Privacy Manager