# Best way to implement user generated URLS / Routes

**URL:** <https://www.ruby-forum.com/t/best-way-to-implement-user-generated-urls-routes/190714>\
**Category:** Rails\
**Created:** [June 25, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/best-way-to-implement-user-generated-urls-routes/190714 "2010-06-25T15:53:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 25, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/best-way-to-implement-user-generated-urls-routes/190714/1 "2010-06-25T15:53:54Z")

</div>

Hi All,

I’d like to implement user customized URLS so that a user could enter a  
unique string and then a route would be generated so that ’  
[www.mydomain.com/customstring](http://www.mydomain.com/customstring)’ would be a valid route. Does anyone know  
the  
best way to do this in Rails 3?

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 25, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/best-way-to-implement-user-generated-urls-routes/190714/2 "2010-06-25T15:58:35Z")

</div>

I forgot to add, that this would route would map to the user’s show  
action.

On Fri, Jun 25, 2010 at 9:52 AM, removed\_email\_address@domain.invalid \<
