Classy Inputs plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/jcoglan/classy_inputs.git
This is a super-simple view extension for Rails. It just adds helpful class names to all Rails-generated +input+ tags to make it easier to style them. So, by default Rails gives you:
text_field_tag(:foo, :class => 'something') # => < input class="something" id="foo" name="foo" type="text" /> f.check_box(:bar) # => < input id="record_bar" name="record[bar]" type="checkbox" value="1" />
With classy_inputs installed, you get:
text_field_tag(:foo, :class => 'something') # => < input class="something text" id="foo" name="foo" type="text" /> f.check_box(:bar) # => < input class="checkbox" id="record_bar" name="record[bar]" type="checkbox" value="1" />
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 5 months ago

