Updating entire data using ajax

Soichi Ishida
2012-09-08T09:12:15Z

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.

Thanks.

soichi

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.