class Padrino::Helpers::FormBuilder::AbstractFormBuilder

def field_name(field)

field_name(:username) => "user[username]"
Returns the name for the given field
def field_name(field)
  "#{object_name}[#{field}]"
end