Potential for HTTP verb confusion detected.
- Rule ID: ruby_rails_http_verb_confusion
- Languages: ruby
- Source: http_verb_confusion.yml
Rails uses the same actions for both GET and HEAD requests. When creating
actions that handle both GET and state altering verbs (eg. POST), the use
request.get? can lead to unexpected state changes.
✅ Use separate action logic for GET and POST
✅ Check for state altering verbs rather than GET: