Fun with REST routing
So, I have a Users controller, that I want to have some user-level methods in, and I want to separate administrative stuff out to a Users::Admin controller.
My routes are set up:
map.resources :users
map.resources :usersadmin, :controller => 'users/admin'
This works... but its ugly. I want to be able to put in 'http://localhost:3000/users/admin' to get at the admin page, but as this is set up, I have to put in 'http://localhost:3000/usersadmin'. I can't figure out how to convince the routing to let me map REST methods to /users/admin.
Anyone have any ideas?
My routes are set up:
map.resources :users
map.resources :usersadmin, :controller => 'users/admin'
This works... but its ugly. I want to be able to put in 'http://localhost:3000/users/admin' to get at the admin page, but as this is set up, I have to put in 'http://localhost:3000/usersadmin'. I can't figure out how to convince the routing to let me map REST methods to /users/admin.
Anyone have any ideas?
