Rails plugin for automatically adding a CSS class of "text", "password", "submit" etc. to <input /> tags.
Switch branches/tags
Nothing to show
Latest commit 0889d96 Sep 29, 2008 @atnan Initial commit.
Permalink
Failed to load latest commit information.
lib
MIT-LICENSE
README
init.rb

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