Singular resource paths

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

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

On 6/18/07, jdhale [email protected] 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://weblog.techno-weenie.net
http://mephistoblog.com