Hi, ok so I want to set up a RESTful resource as the default fallback
route. Something like this:

"/users/1" would go like you expect it to

"/" would go to ServicesController#index

"/service_name" would go to ServicesController#show

"/service_name/methods/method_name" would be a nested route

Ok so the tricky part is I want to do the services route with
map.resources instead of map.connect so I can still use url helpers
and nested resources and will_paginate and all that fun stuff. I'm
thinking my routes.rb should look something like this:

map.resources :users

map.resources :services, :something => "???" do |service|
  service.resources :methods
end

with some parameter to get rid of the controller name in the services
route. Any ideas?

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to