Method: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods#alert
- Defined in:
- lib/action_view/helpers/prototype_helper.rb
#alert(message) ⇒ Object
Displays an alert dialog with the given message.
Example:
# Generates: alert('This message is from Rails!')
page.alert('This message is from Rails!')
849 850 851 |
# File 'lib/action_view/helpers/prototype_helper.rb', line 849 def alert() call 'alert', end |