brianhempel/hash_to_hidden_fields — pull request #1 by jrust (2012-05-21 23:09:13+00:00)
Title: Support for integers as array values

I was having an issue where a hash like the following:

```ruby
{ some_key: [1, 2, 3] }
```

Was producing code with empty values:
```

```

Finally tracked it down to Rack::Utils.build_nested_query not supporting integers. This commit adds a test for the integer behavior and switches to using ActiveSupports' #to_query which is what url_for uses for building up the query string.