module IndexHelper

  def guess_path_to(model)
    case model
      when CatalogueCategory
        catalogue_category_path model
      when Certificate
        certificate_path model
      when Manufacturer #TODO is it right?
        catalogue_category_by_manufacturer_path model
      when NewsItem
        news_path model
      when Product
        product_path model
      when Project
        project_path model
    end
  end

end
