molten-trunk/molten5_withgrid/app/controllers/solutions_controller.rb
def remove_solutions_out_of_category
    cat = Sfcatnode.find(params[:category_id])
    @solutions.reject! { |sol| !sol.category_tree.include?(cat)  }
  rescue
  end
# Removes any solutions not inside the specified +@category+ if the category is not the root
# category. 
Removes any solutions not inside the specified +@category+ if the category is not the root
category.
Removes any solutions not inside the specified + @category + if the category is not the root category .
def remove_solutions_out_of_category
    cat = Sfcatnode.find(params[:category_id])
    @solutions.reject! { |sol| !sol.category_tree.include?(cat)  }
  rescue
  end
def remove_solutions_out_of_category cat = Sfcatnode . find ( params [ :category_id ] ) @solutions . reject! { | sol | ! sol . category_tree . include? ( cat ) } rescue end
Removes any solutions not inside the specified +@category+ if the category is not the root
category.
Removes any solutions not inside the specified + @category + if the category is not the root category .