atnan / auto_class_input_tags
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
init.rb | ||
| |
lib/ |
README
AutoClassInputTags ================== Automatically adds a class to all <input /> tags, equal to the "type" attribute of the tag. So in the case of <input type="text" />, you would get <input type="text" class="text" />. This is useful for styling elements in mentally challenged browsers who have not implemented CSS attribute selectors. Example ======= Since this monkey patches ActionView::Helpers::TagHelper#tag(), all Rails helpers which output tags should automatically gain the correct classes. Copyright (c) 2008 Nathan de Vries (http://www.atnan.com), released under the MIT license

