This project is archived and is in readonly mode.
Ability to skip html-escaping in options_for_select()
-
Pratik
- State changed from new to incomplete
It sounds like a reasonable thing to me. Please submit a patch.
-
Pratik
- Assigned user set to Pratik
-
Jonathon Wolfe
Hey, I forgot about this ticket for a while, sorry.
I did put together a changeset a while back that adds the ability to skip the html-escaping in options_for_select, but I actually don't think it should be applied -- the patch took more code than I had anticipated, and required changing the call signature of options_for_select, options_from_collection_for_select, and option_groups_from_collection_for_select in order for things to be consistent.
I'd thought it would be a simple one-line change, and it would have been if these methods took an options hash rather than a host of separate params, but as it is, I think the patch would add more complexity than it's worth, and it's better to say you've got to build your option tags yourself if you want the contents to not be html-escaped.