app/helpers/application_helper.rb
# render entities' method value(s); if given multiple entities,  join their values by seperator.
# if method has args, then express them as array [method, *args].
render entities' method value(s); if given multiple entities,  join their values by seperator.
if method has args, then express them as array [method, *args].
render entities ' method value ( s ) ; if given multiple entities join their values by seperator . if method has args then express them as array [ method * args ] .
def render_entities(entities, method, seperator = "<br />")
    entities or return
    seperator.is_a?(String)  or fail "'#{seperator}' must be a string."
    entities.is_a?(Array) ?  (entities.map {|e| e.send(*method)} ).join( seperator ) :
                              entities.send(*method)
  end
def render_entities ( entities , method , seperator = "<br />" ) entities or return seperator . is_a? ( String ) or fail "'#{seperator}' must be a string." entities . is_a? ( Array ) ? ( entities . map { | e | e . send ( * method ) } ) . join ( seperator ) : entities . send ( * method ) end
render entities' method value(s); if given multiple entities,  join their values by seperator.
render entities ' method value ( s ) ; if given multiple entities join their values by seperator .
entities
<not_specific>
method
<not_specific>
seperator
<not_specific>