Method: Forma::Form#add_field

Defined in:
lib/forma/form.rb

#add_field(f) ⇒ Object

Adding a new field to this form.



80
81
82
83
# File 'lib/forma/form.rb', line 80

def add_field(f)
  @tabs = [ Tab.new ] if @tabs.empty?
  @tabs[0].col1.add_field(f)
end