title: Devise messing with my routes
body: <p>I recently turned to devise for my authentication routine. However, i'm still having some problems with it and mainly with routing. After a user logs in, i have the routes :</p>
  
  <pre><code>  devise_for :users
  
    namespace :user do
      root :to =&gt; "town#index"
    end
  </code></pre>
  
  <p>After i log in, i'm redirected to town controller. There i have this line :</p>
  
  <pre><code>&lt;%= link_to raw("&lt;p class='menu_head'&gt;#{t('menu.inventory')}&lt;/p&gt;"), :controller =&gt; "character" %&gt;
  </code></pre>
  
  <p>This actually worked well with restful authentication, but for devise to work i have to specify the controller as "/character", else i get a :</p>
  
  <pre><code>No route matches {:controller=&gt;"user/character"}
  </code></pre>
  
  <p>Though this route is incorrect. How can this be fixed ?</p>
  
  <p>Moreover, i think this one is caused by devise once more. When a new user signs up, devise redirects them to town#index as it would happen if they have logged in. When this happens, for some reason current_user is not initialized. This only happens after sign up not when a user logs in. I'm pretty sure that i'm doing something wrong with devise.</p>