RJS problems



I’m new to RJS (and rails) but it seems like this code should work, but

If I comment out the second statement, the ‘invite’ is updated on the
page. I can see the generated javascript in the alert and it seems

What am I doing wrong?

page[:invite].replace_html @message
page[:invite].visual_effect :highlight

The funny thing is wehn I use this it works but I would like to chain
together a highlight and a fade and can’t seem to do it with

page.visual_effect :highlight, ‘invite’

Any help would be greatly appreciated.

  • Mark