map.connect ":manufacturer_name/:model_name", :controller => "manufactuers", :action => "show"
in your controller params[:manufacturer_name] and params[:model_name] should be available On Oct 22, 6:27 pm, Grayson Piercee <[EMAIL PROTECTED]> wrote: > I know this isn't all that Rails friendly but is it possible to do > catch-all routing so that some value can be passed in as if it were a > controller for example > > http://localhost:3000/ford/thunderbirdhttp://localhost:3000/gm/solstice > > I know you can do it like this > > http://localhost:3000/manufacturers/ford/thunderbirdhttp://localhost:3000/manufacturers/gm/solstice > > but is it possible to skip the controller name? > > TIA. > > GP > -- > Posted viahttp://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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---