Commit 745e4178e84ee25fb609ffae75ce11b517d5e3ae

Authored by AntonioTerceiro
1 parent c5731690

ActionItem70: skeleton for category_controller



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@534 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 17 additions and 0 deletions   Show diff stats
app/controllers/public/category_controller.rb 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +class CategoryController < ApplicationController
  2 +
  3 + before_filter :load_category, :only => [ :view ]
  4 + def load_category
  5 + path = params[:path].join('/')
  6 + @category = environment.categories.find_by_path(path)
  7 + end
  8 +
  9 + # list categories
  10 + def index
  11 + end
  12 +
  13 + # view the summary of one category
  14 + def view
  15 + end
  16 +
  17 +end
... ...