Я, следуя Railscats на ember.js и получил следующее сообщение об ошибке при попытке выполнить действие «AddEntry»ember.js - Ничто не обработал действия
Uncaught Error: Nothing handled the action 'addEntry'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.
Вот мой код:
application.handlebars
<div id="container">
<h1>Raffler</h1>
{{input type="text" value=newEntryName action="addEntry"}}
<p>{{newEntryName}}</p>
<ul>
{{#each entries}}
<li>{{name}}</li>
{{/each}}
</ul>
</div>
application_controller .js.coffee
Raffler.ApplicationController = Ember.Controller.extend
entries: []
addEntry: ->
@entries.pushObject name: @get('newEntryName')
@set('newEntryName', '')
Попробуйте использовать эту строку: 'Raffler.EntriesController = Ember.ArrayController.extend' –