
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".