On 6/18/07, jdhale <jason.d.hale-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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.
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 Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---