lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
# Render a standard string field with column contraints.
Render a standard string field with column contraints.
Render a standard string field with column contraints .
def string_field(attr, html_options = {})
    html_options[:maxlength] ||= column_property(@object, attr, :limit)
    html_options[:size] ||= 30
    text_field(attr, html_options)
  end
def string_field ( attr , html_options = { } ) html_options [ :maxlength ] ||= column_property ( @object , attr , :limit ) html_options [ :size ] ||= 30 text_field ( attr , html_options ) end
Render a standard string field with column contraints.
Render a standard string field with column contraints .
attr
html_options