On May 3, 2005, at 4:54 PM, Kevin Howe wrote:
> Very cool, this is along the lines of something I've been toying  
> with for
> the next version of Nemo (rubyforge.org/projects/nemo). Nemo tags  
> class
> attributes (traits) with display-related metadata, then later uses  
> it to
> render an html table or html edit form. The trait version might look
> something like this:

I offer for consideration my ValidForm library:

http://phrogz.net/RubyLibs/rdoc/files/ValidForm_rb.html

Allows you to create fields and validation rules around them, render  
them out to HTML (with client-side validation of those rules) and  
then re-validate them server-side in Ruby.