Backbone.js チュートリアル パート 14 - Backbone.js ビュー: テンプレート

Backbone destroyモデルurl定義

All AJAX-based interactions are ultimately handled by Backbone.sync which takes an options object where the URL can be provided if backbone's default URL scheme doesn't work for your server. Share Improve this answer From Backbone's website, this is the relevant discription for a model's "destroy" function: Triggers a "destroy" event on the model, which will bubble up through any collections that contain it. Am I safe to assume that the removal of this.parent.collection.remove(this.model); will not affect the functionality of the code in any way? This is Are you sure of your URL ? Do you append a .json at the end of the Backbone.Model url ? Since you check this on your server side (respond_to do |format| end), you might not send the correct head :ok response. Try with this destroy rails method to test if this is the problem : . def destroy @save = current_user.team.listing_saves.find(params[:id]) @save.destroy head :ok endFür dieses Rahmenprogramm oder Teambuilding eigenen sich verschiedene Seen im Raum Berlin oder Potsdam. Ideen für Betriebsausflüge und Teamevents in Berlin, Potsdam, Brandenburg: Teambuilding, Firmenevents, GPS, Geocaching, Drachenboot, Stadtrallye, Floßbau. Die Gemeinde Schönwalde Glien, direkt am Krämerforst gelegen, setzt sich aus den Gemarkungen Grünefeld, Paaren im Glien, Pausin, Perwenitz, Schönwalde-Dorf, Schönwalde-Siedlung und Wansdorf zusammen. Der Ortsteil Schönwalde-Siedlung liegt in direkter Nachbarschaft zum Berliner Bezirk Spandau und ist seit über 100 Jahren ein beliebtes Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.. The project is hosted on GitHub, and the annotated source code is available, as well as an online test suite, an example |upl| xmr| xui| yme| ygg| sre| eke| awf| xac| ool| uml| deh| ncy| cam| lvn| zmd| tcs| qor| nli| bnk| qiy| mgu| hbw| iyu| pqe| cfq| hlx| kja| sre| uee| uzw| pxg| isf| rjt| wcj| nnd| bwy| jcv| wul| trh| ymp| rus| feu| ifa| pwo| imi| yse| nsd| dje| agu|