molten-trunk/molten5_withgrid/app/helpers/solutions_helper.rb
def select_tag_for_solution_search_categories(category)
    # set to the root category if it is nil
    category = category || Sfcatnode.root
    parent = category == Sfcatnode.root ? category : category.parent
    select_tag('category_id', options_for_select(categories_for_solution_search(parent).map { |c| [c.name,c.id]  }, category.id))
  end
# If the specified term is found in the text, then a selection of that text is returned around
# that term.
# Otherwise, just the first AppConstants::SOLUTION_SEARCH_NOTE_LIMIT characters are returned.
If the specified term is found in the text, then a selection of that text is returned around
that term.
Otherwise, just the first AppConstants::SOLUTION_SEARCH_NOTE_LIMIT characters are returned.
If the specified term is found in the text then a selection of that text is returned around that term . Otherwise just the first AppConstants :: SOLUTION_SEARCH_NOTE_LIMIT characters are returned .
def select_tag_for_solution_search_categories(category)
    category = category || Sfcatnode.root
    parent = category == Sfcatnode.root ? category : category.parent
    select_tag('category_id', options_for_select(categories_for_solution_search(parent).map { |c| [c.name,c.id]  }, category.id))
  end
def select_tag_for_solution_search_categories ( category ) category = category || Sfcatnode . root parent = category == Sfcatnode . root ? category : category . parent select_tag ( 'category_id' , options_for_select ( categories_for_solution_search ( parent ) . map { | c | [ c . name , c . id ] } , category . id ) ) end
If the specified term is found in the text, then a selection of that text is returned around
that term.
If the specified term is found in the text then a selection of that text is returned around that term .
# set to the root category if it is nil
category