Topic: Singout Problems

<%= link_to "Singout", destroy_user_session_path ,:method => :delete,  :title => "Singout", :class => "shortcut-messages" %>

rake routes

 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

HTML LINK
<li><a href="/users/sign_out" class="shortcut-messages" data-method="delete" rel="nofollow" title="Singout">Singout</a></li>

ERROR

Routing Error

No route matches [GET] "/users/sign_out"

Last edited by moiseszaragoza (2012-05-22 14:41:33)

Re: Singout Problems

Make sure the rails.js file is getting loaded on the page that the link is on.