title: Rails nested resources with pretty URLs for users
body: <p>The data for my application is structured as:</p>
  
  <ul>
  <li>Organizations have users</li>
  <li>Organizations have messages</li>
  <li>Organizations have sites</li>
  </ul>
  
  <p>I would normally use nested resources to do this RESTfully:</p>
  
  <pre><code>resources :organizations do
    resources :users
    resources :messages
    resources :sites
  end
  </code></pre>
  
  <p>Which gives me URLs like:</p>
  
  <pre><code>/organizations/12/messages
  /organizations/12/sites
  </code></pre>
  
  <p>These wordy URLs are excellent for when an admin needs to create a message for an organization because the URL contains the organization ID.</p>
  
  <p><strong>However</strong>, I would like to show normal users pretty URLs such as:</p>
  
  <pre><code>/messages
  /sites
  </code></pre>
  
  <p>Is there a way to alias these pretty URLs to /organizations/{current_user.organization.id}/* ?</p>