rails/rails — pull request #4574 by ihid (2012-01-21 16:17:37+00:00)
Title: Fixed regression - unable to use a range as choices for form.select.

As of 3.2, form.select(:foobar, 1..3) fails with:
NoMethodError: undefined method `empty?' for 1..3:Range
actionpack/lib/action_view/helpers/tags/select.rb:21:in `render'

However, this still works fine with select_tag and options_for.

I've added tests for both cases and added a one-line fix to convert the range to an array for form.select.