Class: Gaku::Admin::StudentReviewCategoriesController
- Inherits:
-
BaseController
- Object
- CoreController
- BaseController
- Gaku::Admin::StudentReviewCategoriesController
- Defined in:
- app/controllers/gaku/admin/student_review_categories_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#destroy ⇒ Object
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 |
#edit ⇒ Object
25 26 |
# File 'app/controllers/gaku/admin/student_review_categories_controller.rb', line 25 def edit end |
#index ⇒ Object
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 |
#new ⇒ Object
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 |
#update ⇒ Object
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 |