阅读背景:

将Backbone.js中的JSON传递给Rails 2

来源:互联网 

When Backbone.js passes data to the server, it doesn't nest the CGI params in a model-name hash like Rails expects, so you have to pick them out of all the other params via Hash.select or a reverse merge or some other hack in the controller action, or use the emulateJSON hack in Backbone which JSON-encodes all the values in to a single "model" parameter and decode them in the controller. Is there a more elegant solution on either side?When Backbone.js passes data to the server, it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: