Class: Gaku::Admin::SchoolYearsController
- Inherits:
-
BaseController
- Object
- CoreController
- BaseController
- Gaku::Admin::SchoolYearsController
- Defined in:
- app/controllers/gaku/admin/school_years_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
19 20 21 22 23 24 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 19 def create @school_year = SchoolYear.new(school_year_params) @school_year.save set_count respond_with @school_year end |
#destroy ⇒ Object
34 35 36 37 38 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 34 def destroy @school_year.destroy set_count respond_with @school_year end |
#edit ⇒ Object
26 27 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 26 def edit end |
#index ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 9 def index @school_years = SchoolYear.all set_count respond_with @school_years end |
#new ⇒ Object
15 16 17 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 15 def new @school_year = SchoolYear.new end |
#update ⇒ Object
29 30 31 32 |
# File 'app/controllers/gaku/admin/school_years_controller.rb', line 29 def update @school_year.update(school_year_params) respond_with @school_year end |