Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I tested your routes and I got this on a <code>rake routes</code>:</p> <pre><code>account_password POST /account/password(.:format) {:controller=&gt;"devise/passwords", :action=&gt;"create"} new_password GET /account/password/new(.:format) {:controller=&gt;"devise/passwords", :action=&gt;"new"} edit_password GET /account/password/edit(.:format) {:controller=&gt;"devise/passwords", :action=&gt;"edit"} PUT /account/password(.:format) {:controller=&gt;"devise/passwords", :action=&gt;"update"} account POST /account(.:format) {:action=&gt;"create", :controller=&gt;"users/registrations"} sign_up GET /sign_up(.:format) {:action=&gt;"new", :controller=&gt;"users/registrations"} DELETE /account(.:format) {:action=&gt;"destroy", :controller=&gt;"users/registrations"} confirmation POST /confirmation(.:format) {:action=&gt;"create", :controller=&gt;"devise/confirmations"} new_confirmation GET /confirmation/new(.:format) {:controller=&gt;"devise/confirmations", :action=&gt;"new"} GET /confirmation(.:format) {:action=&gt;"show", :controller=&gt;"devise/confirmations"} new_user_session GET /sign_in(.:format) {:action=&gt;"new", :controller=&gt;"devise/sessions"} user_session POST /sign_in(.:format) {:action=&gt;"create", :controller=&gt;"devise/sessions"} </code></pre> <p>destroy_user_session DELETE /sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"}</p> <p>So, I guess you should be using <code>user_session_path</code>(without any argument) on your <code>form_for</code>. If you put the user as an argument, Rails will think it is the format and it will not work.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload