Class: Maglev::Studio::SectionPreviewController

Inherits:
ApplicationController show all
Includes:
ContentLocaleConcern, RenderingConcern, Maglev::ServicesConcern
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

#resource_id

Instance Method Details

#showObject



18
19
20
# File 'app/controllers/maglev/studio/section_preview_controller.rb', line 18

def show
  render_maglev_page
end