Sha256: 0c9bd7beaff75e142ef0981662aef4ffbf99024de934ba87e35dd8f2313ae366

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

require_dependency "knowledge_base/application_controller"

module KnowledgeBase
  class CategoriesController < ApplicationController
    def index
      @categories = Category.all
    end

    def show
      @category = Category.friendly.find params[:id]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knowledge_base-0.0.3 app/controllers/knowledge_base/categories_controller.rb