plataformatec/simple_form — Issue #508: :disabled => false on collection_select not working as expected
Author: camallen
Created: 2012-03-08 15:44:15+00:00
State: open

Hi,

I am trying to use :disabled => true/false on a collection select using the master branch of simple_form. I've provide the examples of what i see below:

1. When setting :disabled to false

```= f.input :test, :collection => {"ON"=>true, "OFF"=>false}, :selected => true, :include_blank => true, :disabled => false
```
results in the following HTML:
```

ON

OFF

```

2. When setting :disabled to true:

```= f.input :test, :collection => {"ON"=>true, "OFF"=>false}, :selected => true, :include_blank => true, :disabled => true
```
results in the following HTML:

```

ON

OFF

```

I can fix the issue by providing :input_html => { :disabled => true } instead of just :disabled on the input.

Is this expected behaviour? The readme says to use the :disabled not the :input_html option.

Cheers,
Cam