Class: Tasks::Content::PreviewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::Content::PreviewController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/content/preview_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#otu_content ⇒ Object
4 5 6 |
# File 'app/controllers/tasks/content/preview_controller.rb', line 4 def otu_content @otu = Otu.find(params[:otu_id]) end |
#otu_content_for_layout ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/tasks/content/preview_controller.rb', line 8 def otu_content_for_layout @otu = Otu.find(params[:otu_id]) @otu_page_layout = OtuPageLayout.find(params[:otu_page_layout_id]) @contents = @otu.contents.for_page_layout(@otu_page_layout.id) render 'contents/preview' end |