Class: Gaku::Admin::StudentReviewCategoriesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/gaku/admin/student_review_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



19
20
21
22
23
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 19

def create
  @student_review_category = StudentReviewCategory.create(student_review_category_params)
  set_count
  respond_with @student_review_category
end

#destroyObject



33
34
35
36
37
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 33

def destroy
  @student_review_category.destroy!
  set_count
  respond_with @student_review_category
end

#editObject



25
26
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 25

def edit
end

#indexObject



8
9
10
11
12
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 8

def index
  @student_review_categories = StudentReviewCategory.all
  set_count
  respond_with @student_review_categories
end

#newObject



14
15
16
17
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 14

def new
  @student_review_category = StudentReviewCategory.new
  respond_with @student_review_category
end

#updateObject



28
29
30
31
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 28

def update
  @student_review_category.update(student_review_category_params)
  respond_with @student_review_category
end