# How would I create a "tagged domain"?

**URL:** <https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374>\
**Category:** Rails\
**Created:** [May 30, 2010, 10:17am UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374 "2010-05-30T10:17:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 30, 2010, 10:17am UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374/1 "2010-05-30T10:17:58Z")

</div>

Hi,

Basically I recently been playing around with my ruby on rails system,  
and I’m wondering how I can get it to pick some words from the :name  
of the tutorial (I have a system with categories and tutorials) and  
make this into what I call a tagged domain, basically instead of it  
showing the ID in the URL, it would instead show something like so:  
keyword-keyword-keyword-keyword-keyword

Is this possible? If it is then how would I go about doing it?

Also if I could change the categories URL so instead of categories/ID  
it could be categories/UrlName (a property which I would make); I  
assume this second task would be considerably easier than the first as  
it seems RoR being a clever language would make it easy to do this  
through routes.rb (or something, I’m really still not sure how I can  
change the URL properly)…

This is the main bit of my routes.rb that makes the tutorials and  
categories be displayed in the URL the way they are:

map.connect ‘categories/:id/tutorials/:action’, :controller =\>  
‘categories’

map.connect ‘:controller/:action:id’  
map.connect ‘:controller/:action/:id.:format’

map.resources :tutorials,  
:controller =\> “categories”,  
:path\_prefix =\> “/category/:category\_id”,  
:name\_prefix =\> “category\_”

end

Please Help,

I’m sorry for my lack of knowledge,

-Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 31, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374/2 "2010-05-31T18:40:33Z")

</div>

Bump?! Please, can anyone help?

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [June 2, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374/3 "2010-06-02T12:49:20Z")

</div>

Bump (last time)!!

Can no one help me with this? I really can’t figure it out…

Please Help,

Thanks In Advance,

Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [June 3, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374/4 "2010-06-03T13:10:25Z")

</div>

Hi,

I don’t know if this will help, but have you tried a search on  
‘permalink’?
