title: route for Devise sign up form
body: <p>The Devise wiki has instructions <a href="https://github.com/plataformatec/devise/wiki/How-To:-Display-a-custom-sign_in-form-anywhere-in-your-appfor" rel="nofollow">https://github.com/plataformatec/devise/wiki/How-To:-Display-a-custom-sign_in-form-anywhere-in-your-appfor</a> creating a sign_in form anywhere on a site. I wanted to put the sign_up form on the home page. </p>
  
  <p>The sign_in form they recommend begins like this </p>
  
  <pre><code>&lt;%= form_for("user", :url =&gt; user_session_path) do |f| %&gt;
  </code></pre>
  
  <p>Based on what that example and this output from rake routes</p>
  
  <p><code>new_user_registration GET    /users/sign_up(.:format)          devise/registrations#new</code></p>
  
  <p>I started the sign_up form like this on my site home page</p>
  
  <pre><code>&lt;%= form_for("user", :url =&gt; new_user_registration_path) do |f| %&gt;
  </code></pre>
  
  <p>When I revved up the server and tried to sign up a user, I got this error</p>
  
  <pre><code>No route matches [POST] "/users/sign_up"
  
  Try running rake routes for more information on available routes. 
  </code></pre>
  
  <p>The one thing I notice is that <code>rake routes</code> shows a GET request for the new_user_registration, while my error message is showing a POST.  Not sure if that's significant. </p>
  
  <pre><code>Routes.rb
  
  
  
  root :to =&gt; "home#index"
  devise_for :users
  resources :users
  </code></pre>