lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
def labeled_field_method?(name)
    prefix = 'labeled_'
    if name.to_s.start_with?(prefix)
      field_method = name.to_s[prefix.size..-1]
      field_method if respond_to?(field_method)
    end
  end
# A form builder that automatically selects the corresponding input field
# for ActiveRecord column types. Convenience methods for each column type allow
# one to customize the different fields.
# All field methods may be prefixed with 'labeled_' in order to render
# a standard label with them.
A form builder that automatically selects the corresponding input field
for ActiveRecord column types. Convenience methods for each column type allow
one to customize the different fields.
All field methods may be prefixed with 'labeled_' in order to render
a standard label with them.
A form builder that automatically selects the corresponding input field for ActiveRecord column types . Convenience methods for each column type allow one to customize the different fields . All field methods may be prefixed with ' labeled_ ' in order to render a standard label with them .
def labeled_field_method?(name)
    prefix = 'labeled_'
    if name.to_s.start_with?(prefix)
      field_method = name.to_s[prefix.size..-1]
      field_method if respond_to?(field_method)
    end
  end
def labeled_field_method? ( name ) prefix = 'labeled_' if name . to_s . start_with? ( prefix ) field_method = name . to_s [ prefix . size .. - 1 ] field_method if respond_to? ( field_method ) end end
A form builder that automatically selects the corresponding input field
for ActiveRecord column types.
A form builder that automatically selects the corresponding input field for ActiveRecord column types .
name