# How to do personal domains like del.icio.us

**URL:** <https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671>\
**Category:** Rails\
**Created:** [March 6, 2010, 8:08am UTC](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671 "2010-03-06T08:08:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristianvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@cristianvg](https://www.ruby-forum.com/u/cristianvg)\
**Post date:** [March 6, 2010, 8:08am UTC](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671/1 "2010-03-06T08:08:09Z")

</div>

Hi,

I am looking for a solution in my application, i want to provide a  
personal “domain” to my users just like [del.icio.us](http://del.icio.us) do, i don’t want a  
subdomain, i just want that people can choose to show some information  
and give other people a link like [www.myapplication.com/name\_of\_user](http://www.myapplication.com/name_of_user).

i want to transform =\>

[www.myapplication.com/name\_of\_user](http://www.myapplication.com/name_of_user)

to

[www.myapplication.com/users/1](http://www.myapplication.com/users/1)

what is the correct approach ?

thanks,

Cristian Vasquez  
Medellin - Colombia

---

<div class="post-metadata">

**Author:** ![cristianvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@cristianvg](https://www.ruby-forum.com/u/cristianvg)\
**Post date:** [March 6, 2010, 8:57am UTC](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671/2 "2010-03-06T08:57:14Z")

</div>

1. Use subdomains and cname records.  
2if name unic, in your model write  
def to\_param  
name  
end

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![cristianvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@cristianvg](https://www.ruby-forum.com/u/cristianvg)\
**Post date:** [July 4, 2010, 11:41am UTC](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671/3 "2010-07-04T11:41:52Z")

</div>

Cristian Vasquez wrote:

> I am looking for a solution in my application, i want to provide a  
> personal “domain” to my users just like [del.icio.us](http://del.icio.us) do, i don’t want a  
> subdomain, i just want that people can choose to show some information  
> and give other people a link like [www.myapplication.com/name\_of\_user](http://www.myapplication.com/name_of_user).

Have a look at this article which shows how to have unique user URLs as  
either subdomains (without changes to web server or cname records) or  
as directory path names:

> **[greg willits](http://www.gregwillits.ws/articles/using-subdomains-in-rails-apps)**
>
> This article will show you how to use URLs like http://photosByBetty.fancysite.com instead of http://www.fancysite.com/artists/photosByBetty in your Rails application.

– gw
