module Form module Component class TextArea < Base def attributes defaults.merge(options).merge({ :name => composed_name, :id => id_attribute }) end def defaults { :cols => 50, :rows => 5 } end def to_html Tag.new(:textarea, value, attributes).to_s end end end end