#63 Model Name in URL
RailsCasts (Mobile)
English - July 27, 2007 07:00 - 6 minutes - 6.21 MB Video - ★★★★★ - 58 ratingsTechnology Education How To rails ruby on rails screencasts podcasts tips tricks tutorials training programming railscast Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Previous Episode: #62 Hacking ActiveRecord
Next Episode: #64 Custom Helper Modules
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.