engine/app/controllers/locomotive/public/rendering_controller.rb

26 lines
489 B
Ruby

module Locomotive
module Public
class RenderingController < ApplicationController
include Locomotive::Routing::SiteDispatcher
include Locomotive::Render
before_filter :require_site
before_filter :authenticate_admin!, :only => [:edit]
before_filter :validate_site_membership, :only => [:edit]
def show
render_locomotive_page
end
def edit
@editing = true
render_locomotive_page
end
end
end
end