# Singular resource paths

**URL:** <https://www.ruby-forum.com/t/singular-resource-paths/107199>\
**Category:** Rails\
**Created:** [June 19, 2007, 2:17am UTC](https://www.ruby-forum.com/t/singular-resource-paths/107199 "2007-06-19T02:17:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdhale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@jdhale](https://www.ruby-forum.com/u/jdhale)\
**Post date:** [June 19, 2007, 2:17am UTC](https://www.ruby-forum.com/t/singular-resource-paths/107199/1 "2007-06-19T02:17:12Z")

</div>

I am working on an application where I have the urls setup like this:

[http://www.foo.com/jdhale](http://www.foo.com/jdhale)

where jdhale is the username for the user. I do this with a plugin  
called resource\_hacks. Other than some weird errors when calling some  
url generator methods on nested resources, this works fine. However,  
I get the impression that using resource\_hacks is no longer  
necessary. So, my question is this: Is there a way to accomplish the  
same thing in Rails 1.2.3 without using resource\_hacks. Further, does  
anyone know if Rails 2.0 will support this type of resource url  
mapping without the use of resource\_hacks.

Thanks

---

<div class="post-metadata">

**Author:** ![jdhale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@jdhale](https://www.ruby-forum.com/u/jdhale)\
**Post date:** [June 19, 2007, 10:30am UTC](https://www.ruby-forum.com/t/singular-resource-paths/107199/2 "2007-06-19T10:30:55Z")

</div>

On 6/18/07, jdhale [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> same thing in Rails 1.2.3 without using resource\_hacks. Further, does  
> anyone know if Rails 2.0 will support this type of resource url  
> mapping without the use of resource\_hacks.

I don’t see why rails would have a problem with this. You’d have to  
put this route after your other routes with static paths, but  
otherwise you shouldn’t have any problems.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
