I'm linking to the destroy action for the Sessions controller like this:
<%= link_to "Sign out", session_path, method: :delete %>
Routes.rb:
resources :sessions, only: [:new, :create, :destroy]
Rails complains about the link above:
No route matches {:action=>"destroy", :controller=>"sessions"} missing required keys: [:id]
How do I link to the destroy action and keeping the REST/resource methodology in Rails when there's no object ID to provide for the link?
rake routes
?