Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Benjamin Wheeler's Profile

GitHub User: brw12

Site: ditditdash.com

Comments by Benjamin Wheeler

Avatar

figured out why calling html() with an element object works at all:
http://jamesallardice.com/passing-an-element-or-object-to-the-jquery-html-method/

...so the html() code WAS working right, but it's really calling .append(). Probably clearer to just use append().

(there's a big advantage to appending the element, rather than just the html from it by doing basically .html(...el.html()) : the @el object can be changed in the future in the js code, and we don't need to bother #container again.)

also, this was keeping me from getting that reset callback:
http://stackoverflow.com/questions/15603107/backbone-collection-fetch-doesnt-fire-reset