Small thing, but this trips newbies up a bit: Rails Routing from the Outside In — Ruby on Rails Guides
I’ve seen lots of routes that look like:
get 'exit', to: 'sessions#destroy', as: :logout_path
And then calls to
logout_path in views not working, until someone reminds them that
_url get added on to the end of the alias.
- Have something on the default error screen that calls out this specific mistake.
- Have a warning in the server logs if a route alias ends with