RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: alcastle
Someone mentioned this already, but it wasn't clear until I found this StackOverFlow answer. To sign_out, you must specify the method as 'delete'.
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>.
See http://stackoverflow.com/a/6557627/1316635
Someone mentioned this already, but it wasn't clear until I found this StackOverFlow answer. To sign_out, you must specify the method as 'delete'.
See http://stackoverflow.com/a/6557627/1316635