Describe the bug Getting an error when trying to create a new layout.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Layouts'
  2. Click on 'Create New Layout'

Expected behavior A page to create a new layout should appear.

Screenshots screencapture-lvh-me-5250-admin-sites-1-layouts-new-2022-09-09-18_08_45


  • OS: Windows 10
  • Browser: Chrome
  • Version: 105.0.5195.102

I can reproduce on my Mac locally as well. A few things off the bat:

  1. test/controllers/admin/comfy/layouts_controller_test.rb does not include a test for new_comfy_admin_cms_site_layout_path so we don't have test coverage for the /admin/sites/:site_id/layouts/new action that hits the controller endpoint comfy/admin/cms/layouts#new
  2. We will need to add a test case that covers the gap in testing mentioned above
  3. worth noting in our fork of the CMS, we allow all parameters through ( -- this is different to the customization we have applied in Violet Rails:

in production, this issue manifests as a white screen on safari or a broken page in chrome:

© 2022 - All rights reserved.