I have a Request resource in my application.  A "Request" is created
by users of the system, but managed by administrators.  For example,
user creates a request to fix a chair, and administrator views and
edits the request.  As a result, I want to create two Request
controllers: Admin::RequestsController and RequestsController.  The
latter is for users of the system to create requests, and lack the
view, update, and delete actions, which are in
Admin::RequestsController only.

My problem is regarding routing.  The simple "map.resources :requests"
declaration in routes.rb only generates routes for the user
RequestsController.  Is there a way to have it route POST requests to
the user RequestsController (with URL /requests), and route all other
requests (PUT, GET, etc.) to Admin::RequestsController (with URL /
admin/requests)?

Thanks,
Eric
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to