Hello
Given the following rules
MyApp::Application.routes.draw do |map|
    resources :accounts do
        resources :comments
    end
    match ''*path'' =>
redirect("/accounts/%{path}")
end
Can we get ActionDispatch to, rather than redirect, re-run the routes?
This would come in handy for using account handles, as in
http://mymusicwebsite.com/metallica
http://mymusicwebsite.com/metallica/comments
http://mymusicwebsite.com/metallica/comments/2
rather than
http://mymusicwebsite.com/accounts/metallica
http://mymusicwebsite.com/accounts/metallica/comments
http://mymusicwebsite.com/accounts/metallica/comments/2
Any help appreciated.
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.