Module: Ramaze::Form::Layer::Sequel
- Defined in:
- lib/ramaze/helper/form.rb
Overview
Layer for Sequel, only generate needs to be implemented, may change in future if we abstract more for different ORMs
Instance Method Summary collapse
-
#generate ⇒ Object
A bit nasty, get the @columns of the object and generate its field_for.
Instance Method Details
#generate ⇒ Object
A bit nasty, get the @columns of the object and generate its field_for
161 162 163 164 |
# File 'lib/ramaze/helper/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 |