public Method

GeneratorMethods.remove(*ids)

Removes the DOM elements with the given ids from the page.

Example:

# Remove a few people
# Generates: ["person_23", "person_9", "person_2"].each(Element.remove);
page.remove 'person_23', 'person_9', 'person_2'

Source Code

# File action_view/helpers/prototype_helper.rb, line 786
def remove(*ids)
  loop_on_multiple_args 'Element.remove', ids
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.