page[].visual_effect problem

Mark Studebaker wrote:


I don't know what I'm doing wrong but I can't seem to get this code to

page[:invite].replace_html @message

Any help would be great.

- Mark

I got same problem.

So I tried to change effect.js,

you can find keyword 'visualEffect', and change like below.

  visualEffect: function(element, effect, options) {
    element = $(element)
    if (effect.startsWith('toggle_')) {
      var s = effect.gsub(/toggle_/, '')
      Effect.toggle(element, s);
    } else {
      var s = effect.dasherize().camelize(), klass =
s.charAt(0).toUpperCase() + s.substring(1);
      new Effect[klass](element, options);
    return element;