title: Rails routing: uninitialized constant ClanController
body: <p>I have some problems with routing custom controller actions</p>
  
  <p>Routes:</p>
  
  <pre><code>resources :clans do
   get 'leave' =&gt;'clan#leave_clan'
   get 'dismiss' =&gt;'clan#dismiss_clan'
   get 'kick_from_clan/:user_id' =&gt;'clan#kick'
   get 'invite/:user_id' =&gt;'clan#invite'
   get 'join' =&gt;'clan#join'
  end
  
  namespace :admin do
   resources :clans
   resources :users
  end
  </code></pre>
  
  <p>I know i have <code>clans</code> both in admin namespace and also without but that is how i need it, actions are completely different in them.</p>
  
  <p>And I use a generated route as <code>clan_join_path(clan)</code>. </p>
  
  <p>This action results in the next error:</p>
  
  <pre><code>uninitialized constant ClanController
  </code></pre>
  
  <p>Directory structure:</p>
  
  <pre><code>      /app
          /controller
            /admin
              /ClansController.rb
            /ClansController.rb
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Also invite and kick routes are not generated as expected.</p>
  
  <pre><code>   *no path*  GET   /clans/:clan_id/kick_from_clan/:user_id(.:format) clan#kick
     *no path*  GET   /clans/:clan_id/invite/:user_id(.:format) clan#invite
  </code></pre>
  
  <p>Any suggestion to the edit part?</p>