ember.js - Can’t get ember's application.hbs, or anything else, to render in rails app -
i'm trying new ember app running in existing rails app. when render root blank page, console showing:
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") deprecated in-favour of register("store:main"); @ object.container.register (http://localhost:3000/assets/application.js:18819:17) @ application.initializer.initialize (http://localhost:3000/assets/application.js:46015:19) @ http://localhost:3000/assets/application.js:39234:7 @ visit (http://localhost:3000/assets/application.js:38434:3) @ dag.topsort (http://localhost:3000/assets/application.js:38488:7) @ ember.application.ember.namespace.extend.runinitializers (http://localhost:3000/assets/application.js:39231:11) @ ember.application.ember.namespace.extend._initialize (http://localhost:3000/assets/application.js:39188:10) @ http://localhost:3000/assets/application.js:16309:19 @ object.ember.handleerrors (http://localhost:3000/assets/application.js:12209:17)
my application.hbs has following:
<h1>mobile manager</h1> {{outlet}}
and mdn(app).js has following:
//= 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();
so ember loaded cant templates render. help!
edit::
my application.js follows:
// manifest file that'll compiled including files listed below. // add new javascript/coffee code in separate files in directory , they'll automatically // included in compiled file accessible http://example.com/assets/application.js // it's not advisable add code directly here, if do, it'll appear @ bottom of // compiled file. // //= require jquery //= require handlebars //= require ember //= require ember-data //= require jquery_ujs //= require_tree ./lib //= require ./app/mdm.js
Comments
Post a Comment