Natan Nobre Chaves


610 Experience
6 Lessons Completed
0 Questions Solved


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

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.