Ruby on Rails
VisualEffects

These are the visual effects you can use as of Rails 0.12.1. You have to include the Prototype library for this to work. Since Effects isn’t bundled with the prototype library anymore, don’t forget to also add the Effects library or else it won’t work.

Call them like this in your ajax links:


:complete => “new Effect.X(‘element-id’)”

or in your elements’ event handlers like this:

See the official documentation on the script.aculo.us wiki for more.