public Method

GeneratorMethods.alert(message)

Displays an alert dialog with the given message.

Example:

# Generates: alert('This message is from Rails!')
page.alert('This message is from Rails!')

Source Code

# File action_view/helpers/prototype_helper.rb, line 832
def alert(message)
  call 'alert', message
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.