rails/rails — Issue #3996: select in ActionView::Helpers::FormOptionsHelper does not select element by default
Author: Spade-Ace
Created: 2011-12-15 17:50:49+00:00
State: open

When in new project with scaffolded Deals, in the controller I put:

```ruby
def new
@deal = Deal.new :quantity => 3
end
```
and in view:

```ruby
- form_for @deal do |f|
= f.select :quantity, options_for_select([1,2,3,4,5])
```
the default value of select is not set, as it should be in accordance with the documentation (http://api.rubyonrails.org/)