Andreas Happe wrote:> Hi,
> I want to redistribute incoming requests to different controllers,
> e.g. depending upon the request''s user id a request should be
> dispatched to user_owner_controller or user_other_controller.
>
I don''t really understand the reason you want to work like that.
If the function of the two controllers are different,
then it seems fair enough to have two different paths.
I don''t know the context of your site,
but if you think of facebook,
you have you "user_other" page;
http://www.facebook.com/profile.php?id=blahblahblah
and you have your "user_owner" page;
http://www.facebook.com/editprofile.php
two ways of looking at the same profile,
but approaching it in two different ways,
has two different urls.
Else, just redirect the "user_owner" to a different controller,
if they''re the owner,
they''re probably happy to move to a "/owner" url temporarily,
and you can make sure all the urls they could click on would go here
directly.
--
Posted via http://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---