def categories
      # add breadcrumb and set title
      add_breadcrumb I18n.t("generic.categories"), :admin_article_categories_path, :title => I18n.t("controllers.admin.terms.categories.breadcrumb_title")
      set_title(I18n.t("generic.categories"))
      @type = 'category'
      @records = Term.term_cats('category', nil, true)

      # render view template as it is the same as the tag view
      render 'view'
    end
def categories
      # add breadcrumb and set title
      add_breadcrumb I18n.t("generic.categories"), :admin_article_categories_path, :title => I18n.t("controllers.admin.terms.categories.breadcrumb_title")
      set_title(I18n.t("generic.categories"))
      @type = 'category'
      @records = Term.term_cats('category', nil, true)

      # render view template as it is the same as the tag view
      render 'view'
    end
displays all the current categories and creates a new category object for creating a new one