class Padrino::Helpers::FormBuilder::AbstractFormBuilder

def build_object(object_or_symbol)

Returns a new record of the type specified in the object
explicit_object is either a symbol or a record
def build_object(object_or_symbol)
  object_or_symbol.is_a?(Symbol) ? @template.instance_variable_get("@#{object_or_symbol}") || object_class(object_or_symbol).new : object_or_symbol
end