app/helpers/application_helper.rb
# render entity's items for display
# "def_items" is definition of items; "selected" is selected items to render. 
# see RunsController for details of item struct
# options[:detail] is true for detail rendering; 
# options[:prompt] is true for rendering prompt word. 
render entity's items for display
"def_items" is definition of items; "selected" is selected items to render.
see RunsController for details of item struct
options[:detail] is true for detail rendering;
options[:prompt] is true for rendering prompt word.
render entity ' s items for display " def_items " is definition of items ; " selected " is selected items to render . see RunsController for details of item struct options [ : detail ] is true for detail rendering ; options [ : prompt ] is true for rendering prompt word .
def render_entity_items(entity, def_items = @def_items, list_items = @list_items, options = {})
    @entity = entity or fail ArgumentError, "entity is not given."
    def_items.is_a?(Hash) or fail "illegal def_items; #{def_items.inspect}"
    list_items.is_a?(Array)  or fail "illegal list_items; #{list_items.inspect}"
    (rest = (list_items - def_items.keys)).blank?  or fail ArgumentError, "items '#{rest.inspect}' are not defined by def_items."
    render :partial => options[:entity_template] || "shared/entity_item", 
           :collection => list_items, 
           :locals => {:entity => entity, :def_items => def_items, :list_items => list_items, :options => options}
  end
def render_entity_items ( entity , def_items = @def_items , list_items = @list_items , options = { } ) @entity = entity or fail ArgumentError , "entity is not given." def_items . is_a? ( Hash ) or fail "illegal def_items; #{def_items.inspect}" list_items . is_a? ( Array ) or fail "illegal list_items; #{list_items.inspect}" ( rest = ( list_items - def_items . keys ) ) . blank? or fail ArgumentError , "items '#{rest.inspect}' are not defined by def_items." render :partial => options [ :entity_template ] || "shared/entity_item" , :collection => list_items , :locals => { :entity => entity , :def_items => def_items , :list_items => list_items , :options => options } end
render entity's items for display
"def_items" is definition of items; "selected" is selected items to render.
render entity ' s items for display " def_items " is definition of items ; " selected " is selected items to render .
entity
<not_specific>
def_items
<not_specific>
list_items
<not_specific>
options
<not_specific>