PodParley PodParley

#63 Model Name in URL

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...

An episode of the RailsCasts (Mobile) podcast, hosted by Ryan Bates, titled "#63 Model Name in URL" was published on July 27, 2007 and runs 6 minutes.

July 27, 2007 ·6m · RailsCasts (Mobile)

0:00 / 0:00

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.

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.

No similar episodes found.

No similar podcasts found.

URL copied to clipboard!