Googling for this has not solved my problems. Is there a particular
site that is recommened for its examples and tutorials on Rails’ AJAX
capabilities? I know exactly what I want to do, just not how to do it,
and am looking for some code to pore over.
I have a dropdown that represents the name of an image in a library.
When the dropdown value is changed, I would like to refresh the current
display and show the image that is now selected. Most of the examples
I’m finding are during the remote submission of the form as a whole, I
can’t seem to find much that executes on an onChange event.
I have an object Foo that has_many Baz objects. During the creation
or editing of a Foo object I’d like to independently be able to
add/remove Baz objects without having to refresh the entire form each
time. Is this even possible? I don’t necessarily want to update any of
the other fields of the Foo object when somebody hits the “Add new Baz”