Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Daniele Spinosa's Profile

GitHub User: microspino

Site: http://microspino.com

Comments by Daniele Spinosa

Avatar

You need to substitute this line

javascript
data.context = $(tmpl("template-upload", file))`

with this other line in the initialize method of the paintings.js.cofee file

javascript
data.context = $($.parseHTML(tmpl("template-upload", file))[1])
Avatar

Cool! Many many thanks.
Do you think that notifications could be suitable for pub/sub like jcoglan faye for nodejs and rack does?