I’m now playing with REST and Rails (with Rails 1.2.1).
I have the following routes in my route.rb :
map.with_options :path_prefix => “/admin”, :name_prefix => “admin_” do
m.resources :requests, :controller => “admin/requests”
This give me a RESTful /admin/requests controller.
In my application, a Request has many Histories.
How can I add the correct route to have something like that :
Without the /admin, it would simply look like this :
map.resources :requests do |request|
But with the /admin, everything becomes to be confused for me.
Any help would be greatly appreciated.
Thanks in advance,