This project is archived and is in readonly mode.
FormHelper#label :id => nil doesn't nullify the id attribute
Reported by Josh Sharpe | November 12th, 2009 @ 05:59 AM
For at least #label and #text_field (my guess is the rest of the helpers) passing :id => nil as an option does not prevent the ID attribute from showing up on the tag.
If we can agree this is a bug then I believe the offending line is in:
FormHelper#add_default_name_and_id
http://github.com/rails/rails/blob/e972acc0d7b63e5ce15bed69f41214fe...
This does work as expected for label_tag and text_field_tag. It'd probably be good if they both worked the same way in this regard.
Comments and changes to this ticket
-
Łukasz Strzałkowski June 28th, 2010 @ 05:59 PM
- Importance changed from to
On Rails 3, head: b5b42af33f446ca3de1d80f92b8c9138dbf6c05d
Works properly for me. It's pretty old, so I think it's invalid now.
-
Santiago Pastorino June 28th, 2010 @ 10:43 PM
- State changed from new to stale
Please Josh try it again and if still fails i will reopen
-
Łukasz Strzałkowski July 9th, 2010 @ 07:15 PM
No body complained about it since my and Santiago updates, so I think it can be closed.
-
Łukasz Strzałkowski July 9th, 2010 @ 07:16 PM
- Assigned user set to José Valim
Jose - squash it! ;)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>