ruby on rails - Odd EmberJS Precompile Error: Expecting 'ID', 'DATA', got 'INVALID' -


i'm building simple ember-rails example app , i'm running odd precompiler error. basics of app looks like.

here's application_controller.js.coffee:

hitch.applicationcontroller = ember.controller.extend     entries: ['asdfasf' , 'asfasdf']      addentry: ->         @entries.pushobject name: @get('newentryname')         @set('newentryname', "") 

here's application.handlebars file:

<div id="container">     <h1>my app</h1>      {{ view ember.textfield valuebinding="newentryname" action="addentry"}}     {{ #each array}}         <li></li>     {{ /each }} </div> 

i'm getting odd error when try load page:

pre compilation failed for: <div id="container">     <h1>my app</h1>     {{ view ember.textfield valuebinding="newentryname" action="addentry"}}     {{ #each array}}         <li></li>     {{ /each }}  </div>  . compiler said: error: parse error on line 4: ...on="addentry"}}  {{ #each array}}        <li> ----------------------^ expecting 'id', 'data', got 'invalid'   (in /users/danshipper/code/hitch/app/assets/javascripts/templates/application.handlebars) 

i have no idea how start debugging this, since i'm rather new ember. looked through barber docs since says it's barber precompiler error couldn't find anything. have ideas?

as stated in comment, removing space in handlebars expression help:

<div id="container">     <h1>my app</h1>      {{view ember.textfield valuebinding="newentryname" action="addentry"}}     {{#each array}}         <li></li>     {{/each }} </div> 

the exception seemed me if precompiler did not expect space @ position :-)


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -