Form Helper CSS plugin

Plugin details

This plugin enhances the default tag helpers to automatically add CSS classes to form elements.

Websitehttp://snafu.diarrhea.ch/software/rails#form_helper_css Repositoryhttp://dev.diarrhea.ch/svn/rails_plugins/trunk/form_helper_css/ Author Markus Koller Tags form, CSS LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://dev.diarrhea.ch/svn/rails_plugins/trunk/form_helper_css/

The following elements are enhanced:

* < input> tags get their type as class name
* submit and reset buttons additionally get the class name _button_
* password fields additionally get the class name _text_
* < textarea> tags get the class name _text_
* < select> and tags are not enhanced

If any helper options already specify a class, nothing will be changed. If you don't want a class to be added, pass :class => nil.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago