Class | Cms::ContentController |
In: |
app/controllers/cms/content_controller.rb
|
Parent: | Cms::ApplicationController |
# File app/controllers/cms/content_controller.rb, line 31 31: def handle_access_denied_on_page(exception) 32: logger.warn "Access Denied" 33: handle_error_with_cms_page('/system/access_denied', exception, :forbidden) 34: end
—— Error Handlers ——————————————————-
# File app/controllers/cms/content_controller.rb, line 26 26: def handle_not_found_on_page(exception) 27: logger.warn "Page Not Found" 28: handle_error_with_cms_page('/system/not_found', exception, :not_found) 29: end
# File app/controllers/cms/content_controller.rb, line 36 36: def handle_server_error_on_page(exception) 37: logger.warn "Exception: #{exception.message}\n" 38: logger.warn "#{exception.backtrace.join("\n")}\n" 39: handle_error_with_cms_page('/system/server_error', exception, :internal_server_error) 40: end
Used by the rendering behavior
# File app/controllers/cms/content_controller.rb, line 43 43: def instance_variables_for_rendering 44: instance_variables - (@initial_ivars || []) - ["@initial_ivars"] 45: end
—— Actions —————————————————————
# File app/controllers/cms/content_controller.rb, line 16 16: def show 17: render_page_with_caching 18: end
# File app/controllers/cms/content_controller.rb, line 20 20: def show_page_route 21: render_page_with_caching 22: end