lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
def select_options(attr)
    assoc = association(@object, attr)
    required?(attr) ? { :prompt => ta(:please_select, assoc) } :
                      { :include_blank => ta(:no_entry, assoc) }
  end
# Depending if the given attribute must be present, return
# only an initial selection prompt or a blank option, respectively.
Depending if the given attribute must be present, return
only an initial selection prompt or a blank option, respectively.
Depending if the given attribute must be present return only an initial selection prompt or a blank option respectively .
def select_options(attr)
    assoc = association(@object, attr)
    required?(attr) ? { :prompt => ta(:please_select, assoc) } :
                      { :include_blank => ta(:no_entry, assoc) }
  end
def select_options ( attr ) assoc = association ( @object , attr ) required? ( attr ) ? { :prompt => ta ( :please_select , assoc ) } : { :include_blank => ta ( :no_entry , assoc ) } end
Depending if the given attribute must be present, return
only an initial selection prompt or a blank option, respectively.
Depending if the given attribute must be present return only an initial selection prompt or a blank option respectively .
attr