lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
def belongs_to_field(attr, html_options = {})
    list = association_entries(attr, html_options)
    if list.present?
      collection_select(attr,
                        list,
                        :id,
                        :to_s,
                        html_options[:multiple] ? {} : select_options(attr),
                        html_options)
    else
      ta(:none_available, association(@object, attr))
    end
  end
# Render a select element for a :belongs_to association defined by attr.
# Use additional html_options for the select element.
# To pass a custom element list, specify the list with the :list key or
# define an instance variable with the pluralized name of the association.
Render a select element for a :belongs_to association defined by attr.
Use additional html_options for the select element.
To pass a custom element list, specify the list with the :list key or
define an instance variable with the pluralized name of the association.
Render a select element for a : belongs_to association defined by attr . Use additional html_options for the select element . To pass a custom element list specify the list with the : list key or define an instance variable with the pluralized name of the association .
def belongs_to_field(attr, html_options = {})
    list = association_entries(attr, html_options)
    if list.present?
      collection_select(attr,
                        list,
                        :id,
                        :to_s,
                        html_options[:multiple] ? {} : select_options(attr),
                        html_options)
    else
      ta(:none_available, association(@object, attr))
    end
  end
def belongs_to_field ( attr , html_options = { } ) list = association_entries ( attr , html_options ) if list . present? collection_select ( attr , list , :id , :to_s , html_options [ :multiple ] ? { } : select_options ( attr ) , html_options ) else ta ( :none_available , association ( @object , attr ) ) end end
Render a select element for a :belongs_to association defined by attr.
Render a select element for a : belongs_to association defined by attr .
attr
html_options