How do I nest devise users with other models?
===

I just made a new app, and am wondering how I would route it. A user has_many companies,but how how do I route it so? I am using devise.


    ::Application.routes.draw do
    
      devise_for :users do
        resources :companies
      end
    
    root :to => "home#index"
    
    end