plataformatec/simple_form — Issue #466: Helpers don't filter the options hash v2.0.0.rc
Author: 23inhouse
Created: 2012-02-22 02:08:37+00:00
State: open

The `input` method only adds real attributes when creating the html output.

For example

```erb
<%= f.input :name, {:label => 'my label'} %>
```

Will strip the label from the hash and only show the relevant attributes

```html

```

## Here is the bug

The other helper methods `label`, `hint` and `full_errors` don't clean up the options hash and just pass everything through.

For example

```erb
<%= f.label :name, {:label => 'my label', :hint => 'my hint'} %>
<%= f.hint :name, {:label => 'my label', :hint => 'my hint'} %>
```

Will NOT clean up the options hash and then adds lots of extra stuff to the html output

```html
my label

my hint

```