# Non numeric IDs in member resources

**URL:** <https://www.ruby-forum.com/t/non-numeric-ids-in-member-resources/133597>\
**Category:** Rails\
**Created:** [April 1, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/non-numeric-ids-in-member-resources/133597 "2008-04-01T23:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b19c9b/32.png) [@vega](https://www.ruby-forum.com/u/vega)\
**Post date:** [April 1, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/non-numeric-ids-in-member-resources/133597/1 "2008-04-01T23:53:47Z")

</div>

I have a nested resource:

map.resources :posts do |posts|  
posts.resources :comments  
end

which generates urls like:

posts/1/comments/2

Is there any way to use a “name” or other parameter instead of  
params[:id] for posts?. In other words I’d like to have a url like

posts/some-name-here/comments/2

Is something like resource\_hacks my only hope?

> **[JvoorHis.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=jvoorhis.com)**
>
> Own this domain today. We make your shopping experience easy. Friendly and quick customer service.

-vega
