Class: Gaku::Api::V1::ClassGroups::StudentsController
- Inherits:
-
BaseController
- Object
- ActionController::API
- ApplicationController
- BaseController
- Gaku::Api::V1::ClassGroups::StudentsController
- Defined in:
- app/controllers/gaku/api/v1/class_groups/students_controller.rb
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/gaku/api/v1/class_groups/students_controller.rb', line 8 def index @students = @class_group.students.page(params[:page ]) collection_respond_to @students, root: :students end |