![](https://secure.gravatar.com/avatar/9e978d6f4e2ac26c7ef4fe67cb4ac344.png?default=mp&rating=pg&size=250)
Natan Nobre Chaves
Joined
610 Experience
6 Lessons Completed
0 Questions Solved
Activity
My guess is that when you put this route: "delete "logout", to: "sessions#destroy"" rails already knows where to go. And then in the button_to form you describe the route: "logout_path".