When a collection is explicitly given to radio-buttons and one of the values is nil, the generated for label for the nil one does not match its corresponding id with a difference of a single underscore character. For example,
The second pair of input and label corresponds to the nil-parameter. As you see, the for has a trailing _, whereas that for id does not, and so they are not consistent.
Expected behavior
The label and corresponding ID values must exactly agree.
Environment
Current behavior
When a collection is explicitly given to radio-buttons and one of the values is
nil
, the generatedfor
label for thenil
one does not match its correspondingid
with a difference of a single underscore character. For example,for
Model
generatesThe second pair of
input
andlabel
corresponds to thenil
-parameter. As you see, thefor
has a trailing_
, whereas that forid
does not, and so they are not consistent.Expected behavior
The label and corresponding ID values must exactly agree.