RailsCasts Pro episodes are now free!

Learn more or hide this

Nicholas Smith's Profile

GitHub User: nicholaspsmith

Site: nicholaspsmith.com

Comments by Nicholas Smith

Avatar

yes, line 6 in entries_index.js.coffee must be
@collection.on('sync', @render, this)

It is supposed to be 'sync' not 'reset'

Cheers!

Avatar

I don't know if this has been mentioned yet, but for me, the EntriesIndex would not update using the provided code. I had to change line 6 of entries_index.js.coffee from this:
@collection.on('reset', @render, this)
to this:
@collection.on('sync', @render, this)

To make it work.

Cheers.