Class: Admin::BlockKindsController
- Inherits:
-
ForestController
- Object
- ForestController
- Admin::BlockKindsController
- Defined in:
- app/controllers/admin/block_kinds_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
8 9 10 |
# File 'app/controllers/admin/block_kinds_controller.rb', line 8 def edit @block_kind end |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/admin/block_kinds_controller.rb', line 4 def index @block_kinds = apply_scopes(BlockKind).by_id.page params[:page] end |
#update ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/admin/block_kinds_controller.rb', line 12 def update @block_kind if @block_kind.update(block_kind_params) redirect_to edit_admin_block_kind_path(@block_kind), notice: 'BlockKind was successfully updated.' else render :edit end end |