Rails CAN do something simple and easy… I wonder if Rails ought to start ADDING “autocomplete”=“OFF” to any rails generated hidden fields? Never hurts, and might save a zillion developer debugging hours when the auto-added “authenticity_token” or “_method=patch” get corrupted… real live example shown below.
It gets worse (IMO)… how about this example with Firefox on the LEFT overwriting the _method hidden field added by Rails, whereas Chrome (on the right) sows _method = “patch”
This has been the source of incredibly confusing
ActionController::RoutingError (No route matches [POST] “/accounts/xxxx/yyyyy”)
So even though not a Rails bug, it woefully affects developers using Rails.
I’ll add an issue on Gihub.
