12

In my rails application, after form post, getting error exceeded available parameter key space. there are too many form fields inside form. Is that reason for error? Any views?

2

2 Answers 2

29

If you really need it badly try increasing the key_space_limit

Rack::Utils.key_space_limit = 262144 

But this can be dangerous as per this "A higher exposure to POST parsing DOS attacks."

Check this

https://github.com/rack/rack/issues/318

Rails / javascript: "too many parameter keys" - what's a good way to normalize form data?

http://myrailsway.blogspot.in/2012/04/rangeerror-exceeded-available-parameter.html

0

If you specified a submission method other than POST (such as method: :get) you might have to make your form submit a POST request instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.