Hey, I am new to merb and I was trying to do lazy loading with the javascript, but its been giving me exceptions. When I goto the url in the browser it gives me the javascript file, but when its requested from a page by XHR it thinks 'javascripts' is supposed to be a controller? I tried playing with the headers, but I really have no idea what is wrong?
URL: /javascripts/minion/all.js REQUEST HEADERS: Accept: text/javascript, text/html, application/xml, text/xml, */* Content-Type: application/xml Origin: http://localhost:4000 Referer: http://localhost:4000/comments User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en- us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17 X-Requested-With: XMLHttpRequest Exception: Controller class not found for controller `javascripts' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
