Plugins - Enhanced form tag helper

StarAdd to favorites

A simple monkey patch that enhances the core [FormTagHelper][1] by automatically adding CSS class names to each type of form tag. For instance, calling textfieldtag('foo', 'enter some text') will output the following:

<input id="foo" name="foo" class="text" type="text" value="enter some text" />

The rules for what class names are added are fairly simple but there are some special cases.

  1. All input tags will have a class name the same as there type.
  2. password fields get the class name 'text' in addition to 'password'.
  3. textarea tags get the class name 'text'.
  4. select tags are not enhanced.

http://lesscode.org/svn/rtomayko/rails/plugins/enhanced-form-tag-helper/

  • Currently 4.8/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?