title: Filter chain halted error with devise gem
body: <p>I am using devise with rails. I have generated User model in devise and I didn't have user controller and home controller . My root page is <code>devise/sessions#new</code>.</p>
  
  <p>My root path</p>
  
  <pre><code> devise_scope :user do
     root :to =&gt; "users/sessions#new"
   end
   devise_for :users, :controllers =&gt; { :omniauth_callbacks =&gt; "users/omniauth_callbacks", :registrations =&gt; "users/registrations" }
  </code></pre>
  
  <p>when I run localhost:3000 I am getting the following error.</p>
  
  <pre><code>Filter chain halted as :require_no_authentication rendered or redirected. 
  
  Started GET "/" for 127.0.0.1 at 2014-02-19 10:07:46 +0530
  Processing by Devise::SessionsController#new as HTML
    User Load (0.2ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
  Redirected to http://localhost:3000/
  Filter chain halted as :require_no_authentication rendered or redirected
  Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
  </code></pre>
  
  <p>The solution I found on internet is that add this in sessions controller <code>prepend_before_filter :require_no_authentication, :only =&gt; [ :new, :create, :cancel ]</code> . My doubt is how can I access sessions  controller. It is not generated in controller it is inbuilt module or is there any other way to solve this.</p>
  
  <p><strong>app/controller/users/session_controller.rb</strong></p>
  
  <pre><code>class Users::SessionsController &lt; Devise::SessionsController
    prepend_before_filter :require_no_authentication, :only =&gt; [ :new, :create, :cancel ]
  end
  </code></pre>