At the end of chapter 1 you give the following example:
def another render pdf: "contents", template: "home/index" end
And you can use that to call a template in another controller. This also works:
And it also bypasses the renderer and goes straight to the template handler code.
But if you do the following:
def another render pdf: "elsewhere/index" end
the template is sought in
I’ve found you can hack the prefix array inside the renderer:
if options[:template] == action_name && filename =~ /^([^\/]+)\/(.+)$/ options[:prefixes] ||=  options[:prefixes].unshift $1 options[:template] = $2 end
But this feels bad to me. Is there a proper way to handle this? Or should
:template just be required if the format is passed to
render? Does that require a resolver?