title: How do I nest devise users with other models?
body: <p>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.</p>
  
  <pre><code>::Application.routes.draw do
  
    devise_for :users do
      resources :companies
    end
  
  root :to =&gt; "home#index"
  
  end
  </code></pre>