app/helpers/application_helper.rb
# render query bar
# default items are given by @def_items(all items definition) and @queries(item names for query)
render query bar
default items are given by @def_items(all items definition) and @queries(item names for query)
render query bar default items are given by @def_items ( all items definition ) and @queries ( item names for query )
def render_query_bar(*queries)
    @def_items && @queries or return
    queries = queries.blank? ? query_items() : queries
    content_tag :div, :class => "query-window" do
      render :partial => "shared/query", :collection => queries
    end
  end
def render_query_bar ( * queries ) @def_items && @queries or return queries = queries . blank? ? query_items ( ) : queries content_tag :div , :class => "query-window" do render :partial => "shared/query" , :collection => queries end end
render query bar
default items are given by @def_items(all items definition) and @queries(item names for query)
render query bar default items are given by @def_items ( all items definition ) and @queries ( item names for query )
queries
<not_specific>