Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new Category from the Pages admin view results in an error #951

Open
morgant opened this issue May 23, 2022 · 0 comments
Open

Adding a new Category from the Pages admin view results in an error #951

morgant opened this issue May 23, 2022 · 0 comments

Comments

@morgant
Copy link
Contributor

morgant commented May 23, 2022

Expected behavior

On the Pages admin view (e.g. /admin/sites/1/pages), clicking the "Edit" button below the categories list, entering a new (unused) Category label, and clicking the '+' button should create the new Category and dynamically show it in the categories list.

Actual behavior

The new Category is created, but the browser will load a blank page (in production) or generate the following error (in development):

ActionController::UnknownFormat in Comfy::Admin::Cms::CategoriesController#create
Comfy::Admin::Cms::CategoriesController#create is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: []

Steps to reproduce

  1. Load the Pages admin view (e.g. /admin/sites/1/pages)
  2. Click the 'Edit' button below the categories list in the sidebar
  3. Enter a new, unused Category label/name in the "Add Category" text field
  4. Click the '+' button

System configuration

CMS version: 2.0.18

Ruby version: 2.7.4

Rails version: 6.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant