Class: Hyrax::ContentBlocksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::ContentBlocksController
- Defined in:
- app/controllers/hyrax/content_blocks_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/hyrax/content_blocks_controller.rb', line 6 def edit t(:'hyrax.controls.home'), root_path t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path t(:'hyrax.admin.sidebar.configuration'), '#' t(:'hyrax.admin.sidebar.content_blocks'), hyrax.edit_content_blocks_path end |
#update ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/hyrax/content_blocks_controller.rb', line 13 def update respond_to do |format| if @content_block.update(value: update_value_from_params) format.html { redirect_to hyrax.edit_content_blocks_path, notice: t(:'hyrax.content_blocks.updated') } else format.html { render :edit } end end end |