You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After long time spent in debugger, I couldn't find the reason why but in my case, the middleware is receiving rack.input, transforming it well, but in the controllers, I still have the camelcase keys.
I'm using Rails 4.2 and Rack 1.6.4. I had to locally patch the gem to run my tests because env["action_dispatch.request.request_parameters"] doesn't exist.
doesn't process params from url, whatever is the verb. That's pretty annoying. We end up with a params object thats containing some keys as underscore, some keys as camelcase
I solved the issue on my side by disabling the part that parses parameters and did it at controller level in a before_action
The text was updated successfully, but these errors were encountered:
Hi, I have many problems with this middleware
rack.input
, transforming it well, but in the controllers, I still have the camelcase keys.I'm using Rails 4.2 and Rack 1.6.4. I had to locally patch the gem to run my tests because
env["action_dispatch.request.request_parameters"]
doesn't exist.params
object thats containing some keys as underscore, some keys as camelcaseI solved the issue on my side by disabling the part that parses parameters and did it at controller level in a before_action
The text was updated successfully, but these errors were encountered: