Backbone.js and Rails - How to handle params from Backbone models?

前端 未结 6 1966
灰色年华
灰色年华 2021-02-01 18:38

In a standard Rails controller, I\'d create a record like this:

@user = User.new(params[:user])

This assumes that the form parameters that come

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 19:02

    In one of the answers to Rails mass assignment and Backbone.js there is mentioned patch https://gist.github.com/719080 which I think will do what you need.

提交回复
热议问题