# Instead of blah/16 can i have the title there?

**URL:** <https://www.ruby-forum.com/t/instead-of-blah-16-can-i-have-the-title-there/186324>\
**Category:** Rails\
**Created:** [April 5, 2010, 1:09am UTC](https://www.ruby-forum.com/t/instead-of-blah-16-can-i-have-the-title-there/186324 "2010-04-05T01:09:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [April 5, 2010, 1:09am UTC](https://www.ruby-forum.com/t/instead-of-blah-16-can-i-have-the-title-there/186324/1 "2010-04-05T01:09:55Z")

</div>

Hey guys

You know how by default the scaffold show view takes you to for ex-  
[www.blah.com/blahs/16](http://www.blah.com/blahs/16)?

How would i replace that 16 with something else?.. most preferably  
the title field or something

What do i need to change in the routes? Thanks

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [April 5, 2010, 1:29am UTC](https://www.ruby-forum.com/t/instead-of-blah-16-can-i-have-the-title-there/186324/2 "2010-04-05T01:29:15Z")

</div>

On Sun, Apr 4, 2010 at 4:08 PM, David Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hey guys
> 
> You know how by default the scaffold show view takes you to for ex-  
> [www.blah.com/blahs/16](http://www.blah.com/blahs/16)?
> 
> How would i replace that 16 with something else?.. most preferably  
> the title field or something

David, please take a look at the to\_param method which you can redefine  
to  
display something other than the id field.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [April 5, 2010, 1:37am UTC](https://www.ruby-forum.com/t/instead-of-blah-16-can-i-have-the-title-there/186324/3 "2010-04-05T01:37:27Z")

</div>

On Sun, Apr 4, 2010 at 4:27 PM, Conrad T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> >

David, here’s an excellent blog post by Obie F. which goes into  
further  
detail about using to to\_param method:

> **[Best Online Casino in Australia | Top Licensed Casinos for Gamblers](https://toponlinecasinoaustralia.com)**
>
> Best Online Casino in Australia with licensed games only. Play blackjack, roulette, poker and other top-notch casino games. Enjoy gambling 24/7.

Good luck,

-Conrad
