title: NoMethodError in Devise::Registrations#new
body: <p>I keep getting this error when I try to sign up on my application, I am using devise for authentication;</p>
  
  <pre><code>    NoMethodError in Devise::Registrations#new
  
  
  undefined method `registration_path' for #&lt;#&lt;Class:0x007fe45c6c35e8&gt;:0x007fe45d9ffd78&gt;
  Extracted source (around line #3):
  
    &lt;h2&gt;Sign up&lt;/h2&gt;
  
    &lt;%= form_for(resource, :as =&gt; resource_name, :url =&gt; registration_path(resource_name)) do |f| %&gt;
      &lt;%= devise_error_messages! %&gt;
  
      &lt;div&gt;&lt;%= f.label :email %&gt;&lt;br /&gt;
  </code></pre>
  
  <p>When I run <code>rake routes</code> I get;</p>
  
  <pre><code>                  Prefix Verb   URI Pattern                    Controller#Action
          new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
              user_session POST   /users/sign_in(.:format)       devise/sessions#create
      destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
             user_password POST   /users/password(.:format)      devise/passwords#create
         new_user_password GET    /users/password/new(.:format)  devise/passwords#new
        edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                           PATCH  /users/password(.:format)      devise/passwords#update
                           PUT    /users/password(.:format)      devise/passwords#update
  cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
         user_registration POST   /users(.:format)               devise/registrations#create
     new_user_registration GET    /users/sign_up(.:format)       devise/registrations#new
    edit_user_registration GET    /users/edit(.:format)          devise/registrations#edit
                           PATCH  /users(.:format)               devise/registrations#update
                           PUT    /users(.:format)               devise/registrations#update
                           DELETE /users(.:format)               devise/registrations#destroy
  </code></pre>
  
  <p>Sign up link code;</p>
  
  <pre><code>&lt;%= link_to "Sign up", new_user_registration_path%&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong>
  Thanks to ParaPenguin the sign up field works now, but when I click submit I keep getting this problem</p>
  
  <pre><code>No route matches [POST] "/users/sign_up"
  
      new_user_session_path    GET     /users/sign_in(.:format)    devise/sessions#new
  user_session_path    POST    /users/sign_in(.:format)    devise/sessions#create
  destroy_user_session_path    DELETE  /users/sign_out(.:format)   devise/sessions#destroy
  user_password_path   POST    /users/password(.:format)   devise/passwords#create
  new_user_password_path   GET     /users/password/new(.:format)   devise/passwords#new
  edit_user_password_path  GET     /users/password/edit(.:format)  devise/passwords#edit
  PATCH    /users/password(.:format)   devise/passwords#update
  PUT  /users/password(.:format)   devise/passwords#update
  cancel_user_registration_path    GET     /users/cancel(.:format)     devise/registrations#cancel
  user_registration_path   POST    /users(.:format)    devise/registrations#create
  new_user_registration_path   GET     /users/sign_up(.:format)    devise/registrations#new
  edit_user_registration_path  GET     /users/edit(.:format)   devise/registrations#edit
  PATCH    /users(.:format)    devise/registrations#update
  PUT  /users(.:format)    devise/registrations#update
  DELETE   /users(.:format)   
  </code></pre>
  
  <p><strong>Update 2-Gjaldon asked me to include my user model and routes</strong>
  My user model</p>
  
  <pre><code>    class User &lt; ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  end
  </code></pre>
  
  <p>Routes.rb</p>
  
  <pre><code>Document::Application.routes.draw do
    devise_for :users
     root "pages#home"
    get "about" =&gt; "pages#about"
     get "prices" =&gt; "pages#prices"
    get "faq" =&gt; "pages#faq", :as =&gt; :faq
    get "terms" =&gt; "pages#terms"
    get "view" =&gt; "pages#view"
    get "policy" =&gt; "pages#policy"
    get "contact" =&gt; "pages#contact"
    get "works" =&gt; "pages#works"
  </code></pre>