Updating entire data using ajax

Rails 3.1.3

I have a general question about Ajax update.

Say, I have an array of javascript objects like,

arryObj = [Object1, Object2, Object3…]

Each object has fields like

Object.date = “…”
Object.text = “…”

Surely, a Rails model has the same fields.

Is there anyway to update the entire model from these javascript objects
using Ajax?

In other words, I have done Ajax update in the form of

<%= form_for script, :remote=>true do |f| %>

This worked fine when dealing with partial data. I want to update it
entirely now.