Actions
Bug #38793
closedFix CR VM json partial rendering
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
easy
Triaged:
No
Pull request:
Description
The old code expected a template file to be stored as `app/views/compute_resources_vms/index/_EXAMPLE.json.erb`. However, in recent versions of rails this leads to a "missing partials" error [1]. This breaks Foreman plugins that rely on this functionality.
The reason: rendering templates with `.` in the name is deprecated, see https://github.com/rails/rails/pull/39164.
[1] https://stackoverflow.com/questions/71069354/rails-7-missing-partial
Actions