既存の Rails アプリで新しい ember アプリを実行しようとしています。ルートをレンダリングすると、空白のページになりますが、コンソールには次のように表示されます。
DEBUG: ------------------------------- application.js:12147
DEBUG: Ember.VERSION : 1.0.0-rc.3 application.js:12147
DEBUG: Handlebars.VERSION : 1.0.0-rc.3 application.js:12147
DEBUG: jQuery.VERSION : 1.9.1 application.js:12147
DEBUG: ------------------------------- application.js:12147
DEPRECATION: register("store", "main") is now deprecated in-favour of register("store:main");
at Object.Container.register (http://localhost:3000/assets/application.js:18819:17)
at Application.initializer.initialize (http://localhost:3000/assets/application.js:46015:19)
at http://localhost:3000/assets/application.js:39234:7
at visit (http://localhost:3000/assets/application.js:38434:3)
at DAG.topsort (http://localhost:3000/assets/application.js:38488:7)
at Ember.Application.Ember.Namespace.extend.runInitializers (http://localhost:3000/assets/application.js:39231:11)
at Ember.Application.Ember.Namespace.extend._initialize (http://localhost:3000/assets/application.js:39188:10)
at http://localhost:3000/assets/application.js:16309:19
at Object.Ember.handleErrors (http://localhost:3000/assets/application.js:12209:17)
私のapplication.hbsには次のものがあります:
<h1>MOBILE MANAGER</h1>
{{outlet}}
そして、私の Mdn(App).js には次のものがあります。
//= require_self
//= require_tree .
//= require_tree ./models
//= require_tree ./controllers
//= require_tree ./views
//= require_tree ./helpers
//= require_tree ./templates
//= require_tree ./routes
window.Mdm = Ember.Application.create();
したがって、Ember は明らかにロードされていますが、レンダリングするテンプレートを取得できません。ご協力いただきありがとうございます!
編集::
私のapplication.jsは次のとおりです。
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require handlebars
//= require ember
//= require ember-data
//= require jquery_ujs
//= require_tree ./lib
//= require ./app/mdm.js