Observer for checkbox

Hi!

I want to put a checkbox on my data list in index view, and change his
value
on database when I change the value of this chekbox.

Someone know how is the good way for do it?

Thanks!


Fernando A.

On Sat, Aug 27, 2011 at 1:22 AM, Fernando A. <
[email protected]> wrote:

Hi!

I want to put a checkbox on my data list in index view, and change his
value on database when I change the value of this chekbox.

Someone know how is the good way for do it?

Look at $.ajax for jquery.

[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Jim ruther Nill wrote in post #1018844:

On Sat, Aug 27, 2011 at 1:22 AM, Fernando A. <
[email protected]> wrote:

Hi!

I want to put a checkbox on my data list in index view, and change his
value on database when I change the value of this chekbox.

Someone know how is the good way for do it?

Look at $.ajax for jquery.

That is the lowest level ajax function that jquery provides, and it’s
only necessary if you need fine grained control over the request.
jquery provides higher level functions like load(), get(), and post()
that are appropriate for most circumstances.