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
#create ⇒ Object
9 10 11 12 |
# File 'app/controllers/hyrax/content_blocks_controller.rb', line 9 def create @content_block.save redirect_back fallback_location: hyrax.content_blocks_path end |
#index ⇒ Object
7 |
# File 'app/controllers/hyrax/content_blocks_controller.rb', line 7 def index; end |
#update ⇒ Object
14 15 16 17 |
# File 'app/controllers/hyrax/content_blocks_controller.rb', line 14 def update @content_block.update(update_params) redirect_back fallback_location: hyrax.content_blocks_path end |