That works fine but I doubt that it is really necessary because browsers have ajax crossdomain restrictions anyway.
I am right or not?
2) I just found it handful when you have multiple fields in your forms use backbone-syphon-rails gem. It doing form serialisation for you and you can write something like that:
coffeescript
createNote: (event) ->
event.preventDefault()
data = Backbone.Syphon.serialize(this)
@collection.create data
1) Not be amiss to add csrf token in your backbone forms and turn it on in application controller:
That works fine but I doubt that it is really necessary because browsers have ajax crossdomain restrictions anyway.
I am right or not?
2) I just found it handful when you have multiple fields in your forms use backbone-syphon-rails gem. It doing form serialisation for you and you can write something like that: