Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of feedbacks #7

Open
strikyflo opened this issue Oct 14, 2016 · 0 comments
Open

Couple of feedbacks #7

strikyflo opened this issue Oct 14, 2016 · 0 comments

Comments

@strikyflo
Copy link

Hi, I have many problems with this middleware

  1. 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.

  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant