Getting no route matches even though route exists

Viewed 14

However, I keep getting no route matches even though to the best of my knowledge I can see the route listed.

HTML

<div>
 
  <% if current_user %>
    Signed in as: <%= current_user.name %>
    <%= link_to 'Sign Out', 'sign_out', method: :delete %>
  <% else %>
    <%= link_to 'auth/facebook', method: :post %> LINK
  <% end %>
</div>

routes.rb

get "auth/facebook/callback", to: "sessions#create"
delete 'sign_out', to: "sessions#destroy", as: 'sign_out'

even in the error, the route does seem to exist.enter image description here

What am I doing wrong?

0 Answers
Related