It is almoust what i wanted. But if i go to forum or category page or
new topic page, i cant use same function.
When im in topic page, it must show:
Category_name -> Forum_name -> Topic_name
If im doing new reply i need to get:
Category_name -> Forum_name -> Topic_name -> New_Reply
If im looking for categories i need to get:
I just dont know how to do this. Im not going to put like 8 if to
There just must be a better way…
JÃ³n BorgÃ¾Ã³rsson wrote:
That’s called breadcrumbs.
This something you are looking for?
I have done something similar with a system of categories,
It involves methods to call url_for with the proper options, and some
Code here: http://pastie.caboo.se/6793
It allows you to do product_url(@product), which will generate:
and category_url(@category) which gnereates: “/products/foo” or
“/products/foo/bar” based on wether @category is a parent or a child.