Plugins - Label helpers

StarAdd to favorites

While Rails up to version 1.0 includes some excellent form helpers, there are a few obvious missing pieces. The most obvious missing helper was for label elements. This isn't terribly surprising, since writing a label element is pretty trivial. But what if there were more to offer?

The label helper will not only figure out the right for attribute to use for the object you are labeling, but will also include error information for the labeled object and method. Why would you want to do this?

This inspiration came from reading Simply Accessible's article on form error messages: http://simplyaccessible.org/article/form-error-messages. This is a good technique for both form accessibility and usability.

Eric Stewart

http://www.eric-stewart.com/blog/articles/2006/01/13/label-me-please

http://www.eric-stewart.com/svn/rails/plugins/label_helpers

Rails' (MIT)

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

View Extensions

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?