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

Desktop:

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

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 (https://github.com/restarone/comfortable-mexican-sofa/blob/master/app/controllers/comfy/admin/cms/layouts_controller.rb#L66) -- this is different to the customization we have applied in Violet Rails: https://github.com/restarone/violet_rails/blob/master/app/controllers/comfy/admin/cms/layouts_controller.rb#L70
0

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

0
© 2022 pullanswer.com - All rights reserved.