Skip to content Skip to sidebar Skip to footer

Rails / Javascript: "too Many Parameter Keys" - What's A Good Way To Normalize Form Data?

I'm using rails 3.1.3. I have a form with a lot of fields. When the form is submitted, I get this error ERROR RangeError: exceeded available parameter key space /home/james/.rv

Solution 1:

This issue was introduced by Rack few releases ago. Refer to these (1, 2) reports. I addressed the issue by adding the following code to initializer file.

if Rack::Utils.respond_to?("key_space_limit=")
  Rack::Utils.key_space_limit = 262144 
end

Post a Comment for "Rails / Javascript: "too Many Parameter Keys" - What's A Good Way To Normalize Form Data?"