I am trying to have a div do the slide up effect, then replace an image
inside a nested div, then do the slide down effect. Should be
straightforward enough, but it looks like the replace_html action is
to run before slide_up has finished. Any idea how I can get replace_html
wait until slide_up has finished? Ideally, I would like slide_down to
until the image gets replaced (dynamically generated image), but that is
Here’s my code
render :update do |page| page[:image_controls].visual_effect :slide_up page.replace_html 'image_wrapper', "<img id=\"my_image\"
Image_controls is a wrapper for image_wrapper, which is a wrapper for
Thanks in advance.