Method: Kiss::Form#add_component

Defined in:
lib/kiss/form.rb

#add_component(type, name, *args, &block) ⇒ Object



137
138
139
140
141
142
143
144
# File 'lib/kiss/form.rb', line 137

def add_component(type, name, *args, &block)
  attrs = args.to_attrs
  add_field({
    :type => type,
    :name => name,
    :attach_errors => @_attach_field_errors
  }.merge(attrs), &block)
end