justinfrench/formtastic — Issue #785: Namespaced <select> IDs have duplicate namespaces
Author: beerlington
Created: 2012-01-27 13:23:34+00:00
State: open

I'm using the `:namespace` option in my form and after upgrading to Rails 3.2, I am noticing an issue with the IDs it generates for select elements. It appears that something is creating a mismatch between the `` **for** attribute and the `` **id** attribute.

As you can see in the example below, the ID of the `` element has an extra **group_0** prepended to it. The `
` and ``elements are correct.

I'm noticing the problem using both Formtastic 1.2.4 and 2.0.2 and am not sure if it's a problem with Formtastic or Rails.

```html

File

... removed ...

```

Any thoughts?