Forum: Ruby on Rails lesson learned: careful with :update in link_to_remote

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Xavier N. (Guest)
on 2006-03-04 21:59
(Received via mailing list)
A link_to_remote call was generating Ajax.Request instead of
Ajax.Updater. I couldn't for the life of me understand why. There was
some extra indirection because I used there a helper of mine that
receives an image and generates a link_to_remote with image_tag and
some stuff for image rollover.

After browsing the sources in the API website (hey, that "[ show
source ]" feature is really wonderful) I saw that remote_function(),
used by link_to_remote(), chooses one or the other depending on
whether :update is present.

Oh, light! Exactly, I came back to the template and had actually
written ":udpate".

-- fxn
This topic is locked and can not be replied to.