chiliproject/chiliproject — pull request #123 by mbreit (2011-11-16 13:47:30+00:00)
Title: [#698] Fix issue queries on Ruby 1.9

This should fix the issue query problem described in #698. `Query#values_for(field)` returns an array which is passed to the `text_field_tag` helper method. This works on Ruby 1.8, because `["test"].to_s` returns `test`, but on Ruby 1.9 it returns `["test"]`.

Using the first element of this array as parameter for `text_field_tag` seems better than relying on `Array#to_s`.

I did a quick test on Ruby 1.8.7 as well, it seems to work but it should be tested by someone else as well.