Class: Refinery::GlobalContentBlocks::GlobalContentBlocksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Refinery::GlobalContentBlocks::GlobalContentBlocksController
- Defined in:
- app/controllers/refinery/global_content_blocks/global_content_blocks_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/refinery/global_content_blocks/global_content_blocks_controller.rb', line 8 def index # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @global_content_block in the line below: present(@page) end |
#show ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/controllers/refinery/global_content_blocks/global_content_blocks_controller.rb', line 14 def show @global_content_block = GlobalContentBlock.find(params[:id]) # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @global_content_block in the line below: present(@page) end |