我正在使用 ember-rails master 并创建了一个 ember bootstrap 项目。一切都是空的,并且在创建时保持原样,但我遇到了提到的类型错误。进入路由器时。命名空间是已知的,但路由器不是。有人见过这个吗?
为了完整起见,我将通过以下内容:
Basis.ApplicationController = Ember.Controller.extend({
});
Basis.ApplicationRoute = Ember.Route.extend({
});
基础.js:
//= require ./store
//= require_tree ./models
//= require_tree ./controllers
//= require_tree ./views
//= require_tree ./helpers
//= require_tree ./templates
//= require ./router
//= require_tree ./routes
//= require_self
Basis.Router.map(function(match) {
});
Basis.Store = DS.Store.extend({
revision: 11
});
application.handlebars:
应用
<p>Your content here.</p>
{{outlet}}
应用程序.js
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require handlebars
//= require ember
//= require ember-data
//= require_self
//= require basis
Basis = Ember.Application.create();
//= require_tree .