I would really appreciate some help with changing a link_to_remote call
to a button of some sort. Here’s a little background.
On the page there are two
enter items. The second
each in it’s own item
description as entered in the form. The second contains a
link_to_remote that allows the removal of the item from the database in
the controller action and then removal of the item
As I understand the discussion in AWDwR (p. 335-7), a visitor who has
the Google Web Accelerator (GWA) installed is going to have a real
problem unless I change the link_to_remote to a button. As I
understand it, every time they add an item, GWA is going to follow that
link and remove what they just added.
First, can anybody confirm (or even better, correct my understanding)
that that’s the way GWA is going to work?
Second, assuming I’ve got a real problem, has anybody got any ideas
about how to make this change? I’ve experimented a bit and the
situation right now, using button_to, is that the controller gets called
and the database record gets deleted. When the RJS template gets
called, however, and sends the JS to the browser to remove the item
Sure would appreciate some help on this.
Thanks in advance,