iso .. wrote:
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.
I should add that I have no problem obtaining the js files if they are
not nested in a route, ie.
map.namespace do |admin|
allows me to fetch the new js template file from
Has anyone else had this problem?