title: Rails App: Links to Devise views route to the home page.
body: <p>Iam using Devise + CanCan + Rolify in my app as the authorization and authentication solution.</p>
  
  <p>The admin is doing all the user access management from their dashboard in my app. So Im trying to access all the Devise view links from within my "admin_dashboard.index.html file</p>
  
  <p>Ive created a User controller in this app</p>
  
  <p>Here is the admin_dashboard_index.html.erb file</p>
  
  <pre><code>&lt;table id="users_index_table" %&gt;
    &lt;tr&gt;
   &lt;th&gt;id&lt;/th&gt;
       &lt;th&gt;user name&lt;/th&gt;
   &lt;th&gt;user email&lt;/th&gt;
   &lt;th&gt;user role&lt;/th&gt;
       &lt;th&gt;reset password&lt;/th&gt; 
   &lt;th&gt;&lt;/th&gt; 
   &lt;th&gt;&lt;/th&gt; 
   &lt;th&gt;&lt;/th&gt;  
  
    &lt;/tr&gt;
  &lt;% @users.each do |user| %&gt;
    &lt;tr&gt;
   &lt;td&gt;&lt;%= user.name %&gt;&lt;/td&gt;
   &lt;td&gt;&lt;%= user.email %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= user.roles  %&gt;&lt;/td&gt;
   &lt;th&gt;&lt;%= link_to 'reset password', edit_user_password_path %&gt;&lt;/th&gt; 
   &lt;td&gt;&lt;%= link_to  %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Show', user %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Edit', edit_user_path(user) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Destroy', user, confirm: 'Are you sure?', method: :delete %&gt;&lt;/td&gt;
    &lt;/tr&gt;
   &lt;% end %&gt;
   &lt;/table&gt;
   &lt;%= link_to 'New User', new_user_registration_path %&gt;
  </code></pre>
  
  <p>Now the problem is when I click on these "user" links all work except for the "new_user_registration_path". When I click this it leads me to the home page of the app and the rails server shows this trace:</p>
  
  <pre><code> Started GET "/users/sign_up" for 127.0.0.1 at 2012-06-16 18:24:49 -0700
   Processing by Devise::RegistrationsController#new as HTML
   User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  Redirected to http://localhost:3000/
  Filter chain halted as :require_no_authentication rendered or redirected
  Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
  </code></pre>
  
  <p>How can I get the new user link to and the "edit_user_password_path" to work and route me to the appropriate fields as opposed to the home page.</p>
  
  <p>Thanks</p>