Class: Simplec::PagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/simplec/pages_controller.rb

Instance Method Summary collapse

Methods included from ActionController::Extensions

included, #page, #simplec_path_for, #simplec_url_for, #subdomain

Instance Method Details

#showObject



7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/simplec/pages_controller.rb', line 7

def show
  begin
    render_path params[:path] || ''
  rescue ActiveRecord::SubclassNotFound => e
    # TODO add proc config for error notification, airbrake, etc
    #
    Rails.logger.info e
    render status: 404
  end
end