class ArticleCategoriesController

Public Instance Methods

show() click to toggle source
# File app/controllers/article_categories_controller.rb, line 2
def show
  @article_category = ArticleCategory.find(params[:id])
  @article_category.articles.delete_if { |article| !article.display? }

  # Determine what category id to use to generate sub catg tabs
  @top_level_article_category_id = @article_category.parent_id
  @top_level_article_category_id = params[:id] if @top_level_article_category_id == 0
end