Hi, i''m trying to setup a custom route and having some trouble. In various resources i''ve seen plenty of examples of how to do something along the lines of: map.connect "foo/bar/:a/:b/:c", :controller => "foo", :action => "bar", (and :a,:b and :c get mapped to params[]) what i''d like to do is make a mapping of the form map.connect ":foo/:controller/:action/:id" i''d like to do something like this so people can, say, choose a locale in the url as the param[:foo] (like http://myserver:3000/en/somecontroller/someaction/) is that possible? i tried adding the route: map.connect ":foo/:controller/:action/:id" and when i try to go to an address like the one i specified, it returns that no route matches. I''ve seen other posts in the archives that suggest this should work, but maybe there''s something additional that needs to be done? any help is greatly appreciated. thanks! -k -- 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 -~----------~----~----~----~------~----~------~--~---