I have a file in views/admin/contents/new.js that I would like to be
returned on a request from a script tag ex:
If I test out the js request manually, ie entering the js url in the
browser, I get the error shown below:
Template is missing
Missing layout layouts/admin.js.erb in view path
It is Missing layout layouts/admin.js.erb that I don’t understand.
Why is this being routed in this way? It should be
Thanks for the help.