title: Using own registrations controller with Devise
body: <p>I use devise for authentication. I wanted to use my own registrations controller instead of the one which devise uses internally. So went up and followed the instructions provided here, <a href="https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password" rel="nofollow">https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password</a></p>
  
  <p>Copy the registrations_controller.rb file from Devise (remember to copy the controller from the same devise version as your devise gem)<br>
  Place this into your /app/controllers directory.<br>
  In config/routes.rb add :controllers => { :registrations => "registrations" } to your devise_for root.<br>
  Make sure you name the file registrations_controller.rb<br>
  Change the first line: class Devise::RegistrationsController &lt; ApplicationController to class RegistrationsController &lt; ApplicationController  </p>
  
  <p>I use the devise version 1.1 and I copied the registrations_controller.rb file from here.
  <a href="https://github.com/plataformatec/devise/blob/v1.1/app/controllers/devise/registrations_controller.rb" rel="nofollow">https://github.com/plataformatec/devise/blob/v1.1/app/controllers/devise/registrations_controller.rb</a></p>
  
  <p>Now, when I hit new action of the registrations controller, 
  I get the below error</p>
  
  <pre><code>NoMethodError (undefined method `new_with_session' for User:Class):
  app/controllers/registrations_controller.rb:71:in `build_resource'
  app/controllers/registrations_controller.rb:8:in `new'
  </code></pre>
  
  <p>My registrations_controller.rb looks exactly like the one from where i copied.
  what could be the problem? Thanks.</p>