Ruby on Rails looks neat. I’ve been playing with it the past couple of days. The latest version has built-in AJAX (async JScript) integration. One thing I haven’t been able to find is documentation for built-in functions like link_to and link_to_remote.
I integrated the Fade Anything Technique with Robby’s AJAX random number generator to make the updated number fade in. The only trick was finding the right callback hook in link_to_remote. I found the answer by googling link_to_remote and finding the :complete method that I used below:
< %= link_to_remote "Generate Random Number",
:update => “myrandom”,
:complete => “Fat.fade_element(’myrandom’)”,
:url => { :action => “myrandom” } %>
>
Are link_to and link_to_remote documented anywhere?
Other blogs commenting on this post – Comments (1)



