当我用stealjs构建压缩的javascript和css时,我找不到夹具发现真正的api错误信息,而不是夹具网址。为什么会发生以及如何解决?
// CanJS model
can.Model("Models.ProtocolLimit", {
indAll: 'GET /protocol_limits'
}, {});
// Rails route
resources :protocol_limits, :only => [:index]
错误消息是:
fixture INFO: ajax request to /protocol_limits, no fixture found
failed to open file file:/protocol_limits JavaException: java.io.FileNotFoundException: /protocol_limits (No such file or directory)
Exception in thread "Thread-0" org.mozilla.javascript.EcmaError: TypeError: Cannot call method "indexOf" of null (steal/rhino/env.js#24542)