I use rails 4.1.0 and Devise. I've setup devise on Member
model class and when I click "log out" link as bellow:
<%= link_to "Log out", destroy_member_session_path, :method => :delete %>
I get the following error only on production environment:
No route matches [GET] "/members/sign_out Devise
Note: I've precompiled my assets and include the following in my application.js file:
//= require jquery
//= require jquery_ujs
Member
class only, right? – kiddorails:method => :delete
and makes the form submit with that method. Can you see that jQuery and jQuery UJS are actually loading in your browser? – Buck Doylerake routes
gives this route to you? – kiddorails