johm/freeskool — Issue #4: Devise routing for users complicates nested routes
Author: canweriotnow
Created: 2012-02-20 23:06:28+00:00
State: open

I honestly just need to research this more, but I wanted to throw this out there in case anyone wanted to tackle it.

It would be nice to have urls like /users/:id/courses (or, even prettier, match /my to /users/:id) but it doesn't seem like you can have:

devise_for :users do
get :courses, :on => :member
end

the way you can with `resources :users` obviously, there's more than one way to achieve this, but I think it would be nice to keep it RESTful as possible. If nobody else claims this one, I'll try to tackle it this weekend.