Using the route helpers is better because:
- you validate the route actually exists in your app.
- if you change the url, you don’t have to change the code
That said, this will just work too: <%= link "Logout", to: Routes.user_session_path(@socket, :delete), method: :delete %>.






















