aboutsummaryrefslogtreecommitdiff
blob: e189f04c3d5e5bb9eb4e8f4be82e206aeb3cb9ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class QuestionGroupsController < ApplicationController

  hobo_model_controller

  auto_actions  :all, :except => :index
  index_action   :category

  def category
    if params["id"].nil? || params["id"].empty?
      hobo_index
    else
      hobo_index QuestionGroup.in_category params["id"]
    end
  end
end