This project is archived and is in readonly mode.
Support for HTML Class String in options_for_select
-
Tarmo Tänav
I don't have an opinion on wether this feature is needed but the patch seems to be using tabs for indenting, these should be replaced with spaces.
-
Chris Barnett
I don't think this is the best way to fix this problem. What happens when you want to specify the 'id', 'lang', 'style', or 'title' attributes?
Is there a more general solution?
-
Edd Morgan
I considered just adding support for an array of hashes as the container but it seems that if one wanted to construct an array of hashes for this, they may as well just iterate their own string of option tags. The class attr seemed to be the one that would be used more often.
What are everyone's thoughts of adding support for a collection of hashes for each option item?
-
Pratik
- State changed from new to wontfix
- Tag set to actionpack, helper, patch
I don't think this functionality belongs in core. You should try to pluginize it and see if it's widely used. Also, you can get opinions of others on core mailing list.
Thanks!