title: How do I override a Devise 1.1.rc2 controller?
body: <p>I want to add the option to register with a JSON format and some other specific stuff to my application. I've tried adding my own <code>RegistrationsController</code> controller and then setting my routes to look like this:</p>
  
  <pre><code>devise_for :users, :path_names =&gt; { :sign_in =&gt; 'signin', :sign_out =&gt; 'signout', :sign_up =&gt; 'signup' }
  match 'signin', :to =&gt; 'devise/sessions#new', :as =&gt; "new_user_session"
  match 'signout', :to  =&gt; 'devise/sessions#destroy', :as =&gt; "destroy_user_session"
  match 'signup(.:format)', :to =&gt; 'registrations#new', :as =&gt; "new_user_registration"
  </code></pre>
  
  <p>My <code>RegistrationsController</code> in app/controllers/registrations_controller.rb looks like this:</p>
  
  <pre><code>class RegistrationsController &lt; Devise::RegistrationsController
    prepend_view_path "app/views/devise"
    def create
      # My custom implementation
    end
  end
  </code></pre>
  
  <p>It always throws the following error regardless of the format</p>
  
  <pre><code>AbstractController::ActionNotFound (AbstractController::ActionNotFound):
  /usr/local/Cellar/Gems/1.8/gems/devise-1.1.rc2/lib/devise/controllers/internal_helpers.rb:57:in `is_devise_resource?'
  ...
  </code></pre>
  
  <p>I even tried adding the registrations controller from git to app/controllers/devise/registrations_controller.rb and changing the routes to point that one instead, but that didn't work either. Anyone have an idea?</p>