Method: Ramaze::Form::Layer::Sequel#generate

Defined in:
lib/ramaze/helper/sequel_form.rb

#generateObject

A bit nasty, get the @columns of the object and generate its field_for



161
162
163
164
# File 'lib/ramaze/helper/sequel_form.rb', line 161

def generate
  columns = object_class.schema.instance_variable_get('@columns')
  columns.map{|hash| field_for(hash) }.flatten.join("<br />\n")
end