Class: Maglev::Studio::SectionPreviewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Maglev::Studio::SectionPreviewController
- Defined in:
- app/controllers/maglev/studio/section_preview_controller.rb
Overview
Renders a single section from default theme content on an in-memory page (no DB page load).
:slug is the theme section type (e.g. "showcase"). Disabled outside Rails.env.local?.
Instance Method Summary collapse
Methods included from ResourceIdConcern
Instance Method Details
#show ⇒ Object
18 19 20 |
# File 'app/controllers/maglev/studio/section_preview_controller.rb', line 18 def show render_maglev_page end |