# Routes configuration

**URL:** <https://www.ruby-forum.com/t/routes-configuration/176733>\
**Category:** Rails\
**Created:** [October 5, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/routes-configuration/176733 "2009-10-05T16:05:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![murraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@murraj](https://www.ruby-forum.com/u/murraj)\
**Post date:** [October 5, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/routes-configuration/176733/1 "2009-10-05T16:05:27Z")

</div>

Hello all,

I need a suggestion in routes configuration.

My requirement is to get all the parameters after the username in a URL,  
as a one string.

That is, consider my url is [http://example.com/raj/123/456/789/101](http://example.com/raj/123/456/789/101)

Here ‘raj’ is the username and i want to extract all the words after  
‘raj’ as one parameter. So “123/456/789/101” should be passed as a  
single parameter.

Is it possible?

Please help in finding the solution.

If you have any suggestions please help me !!!

Thank You

---

<div class="post-metadata">

**Author:** ![murraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@murraj](https://www.ruby-forum.com/u/murraj)\
**Post date:** [October 6, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/routes-configuration/176733/2 "2009-10-06T17:48:44Z")

</div>

See [http://api.rubyonrails.org/classes/ActionController/Routing.html](http://api.rubyonrails.org/classes/ActionController/Routing.html) -  
in particular, the section on route globbing.

–Matt J.

On Oct 5, 10:05 am, Muruga R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![murraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@murraj](https://www.ruby-forum.com/u/murraj)\
**Post date:** [October 7, 2009, 5:44am UTC](https://www.ruby-forum.com/t/routes-configuration/176733/3 "2009-10-07T05:44:07Z")

</div>

Matt J. wrote:

> See [http://api.rubyonrails.org/classes/ActionController/Routing.html](http://api.rubyonrails.org/classes/ActionController/Routing.html) -  
> in particular, the section on route globbing.
> 
> –Matt J.
> 
> On Oct 5, 10:05ï¿½am, Muruga R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thank you very much Jones.

That’s what i expected.  
I added the following in my routes.rb and the problem is solved.

map.profile ‘:username/\*levels’, :controller =\> ‘user’, :action =\>  
‘profile’.

Thank You
