Answer (1 of 3): Backbone.js works well with Rails as it was built specifically with Rails in mind. Backbone's MVC architecture provides a level of organization that really seems necessary if your app has a lot of asynchronous page updates.Like Rails it provides a set of conventions to help organ...
Kicksend is a multiple platform application, we have clients on iOS, Android, OS X, Windows and the web. All of this is powered by a Rails backend, which we treat as an API server. Here are a couple of practices we have in play right now. The Backend (by Tom Raferty) Don’t use to_json for your responses Responses are the equivalent of views for your API; your presentation layer. Hence, you shouldn
February 28, 2012 This article will be appearing in my forthcoming book on Backbone.js and continues the section on unit testing. We previously looked at Jasmine and will now look at QUnit and SinonJS. QUnit is a powerful JavaScript test suite written by jQuery team member Jörn Zaefferer and used by many large open-source projects (such as jQuery and Backbone.js) to test their code. It’s both capa
I'm using Rails, backbone.js (learning this now). Let's say you have two models, Car and Engine. var Car = Backbone.Model.extend({ initialize: function() { if(this.get('engine') != undefined) this.engine = new Engine(this.get('engine')); } } var redCar = new Car({ 'color': 'red', // The controller nests the model 'engine': { 'horsepower': '350' } }); redCar.save() What is the right way to send eng
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く