Class: Students::StudentSpecialtiesController
- Inherits:
-
GakuController
- Object
- GakuController
- Students::StudentSpecialtiesController
- Defined in:
- app/controllers/gaku/students/student_specialties_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 15 def create @student_specialty = @student.student_specialties.create!(student_specialty_params) set_count respond_with @student_specialty end |
#destroy ⇒ Object
35 36 37 38 39 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 35 def destroy @student_specialty.destroy set_count respond_with @student_specialty end |
#edit ⇒ Object
21 22 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 21 def edit end |
#index ⇒ Object
29 30 31 32 33 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 29 def index @student_specialties = @student.student_specialties set_count respond_with @student_specialties end |
#new ⇒ Object
10 11 12 13 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 10 def new @student_specialty = StudentSpecialty.new respond_with @student_specialty end |
#update ⇒ Object
24 25 26 27 |
# File 'app/controllers/gaku/students/student_specialties_controller.rb', line 24 def update @student_specialty.update(student_specialty_params) respond_with @student_specialty end |