So I am currently trying to convert a Rails 5.1 backend so it will convert camelCase posts to snake_case, that way I can keep my Javascript nice consistent with camelCase.
Using the Rails 5.1 answer here, I was able to easily apply the answer from this question: What is the best way to convert all controller params from camelCase to snake_case in Rails? to get JSON posts to convert nicely to camelCase. However, this answer does not cover FormData. The answers in this question: Rails: ActionDispatch::Request.parameter_parsers for multipart/form-data do pertain to converting formdata, however the accepeted answer doesn't help with deeply transforming those keys, and the other answer is deprecated since params are no longer a hash and therefore you can't call deep_transform_keys! on params anymore.
What's the best way to go about this? Should I abandon this camelCase on the frontend and snake_case on the backend effort, or snake_case on my frontend before creating my FormData objects.
Thank you!