molten-trunk/molten5_withgrid/app/helpers/solutions_helper.rb
def category_links(category)
    links = ""
    iterated_cat = category
    if iterated_cat.parent.nil?
      links = insert_category_link(links,iterated_cat)
    else     
      i = 0
      while !iterated_cat.parent.nil? and iterated_cat != Sfcatnode.root
        links = insert_category_link(links,iterated_cat)
        iterated_cat = iterated_cat.parent
        i+= 1
      end
    end
    links.insert(0,"#{link_to('All Solutions', :action => 'index')}")
  end
# Outputs the link category tree for the given category. 
# Example: Answers > Contstrants
Outputs the link category tree for the given category.
Example: Answers > Contstrants
Outputs the link category tree for the given category . Example : Answers > Contstrants
def category_links(category)
    links = ""
    iterated_cat = category
    if iterated_cat.parent.nil?
      links = insert_category_link(links,iterated_cat)
    else     
      i = 0
      while !iterated_cat.parent.nil? and iterated_cat != Sfcatnode.root
        links = insert_category_link(links,iterated_cat)
        iterated_cat = iterated_cat.parent
        i+= 1
      end
    end
    links.insert(0,"#{link_to('All Solutions', :action => 'index')}")
  end
def category_links ( category ) links = "" iterated_cat = category if iterated_cat . parent . nil? links = insert_category_link ( links , iterated_cat ) else i = 0 while ! iterated_cat . parent . nil? and iterated_cat != Sfcatnode . root links = insert_category_link ( links , iterated_cat ) iterated_cat = iterated_cat . parent i += 1 end end links . insert ( 0 , "#{link_to('All Solutions', :action => 'index')}" ) end
Outputs the link category tree for the given category.
Outputs the link category tree for the given category .
category