Harlan Crystal
2008-Mar-07 13:46 UTC
Need +1: FormHelper''s radio_button produced invalid ID attributes
form_for("item[subobject]", @item) do |f| f.radio_button("title", "matchval") end This would produce a radio button with an ID="item[subobject]_title", which is invalid because IDs can''t include bracket characters. All other form_helpers already fixed this issue using the "sanitize_name" function, but this one omitted to use it. I provide a patch with a unit test case and a fix in this ticket: http://dev.rubyonrails.org/ticket/11298 The dev.rubyonrails.org says for my patch to get integrated I should post here asking people to mark my ticket +1. So I''m posting! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---