Pass formats explicitly when rendering .html file
This MR aims to solve the issue #342492 (closed)
According to https://guides.rubyonrails.org/layouts_and_rendering.html#rendering-an-action-s-template-from-another-controller using template: renders views from other controllers.
Edited by Peter Leitzen