Module: Padrino::Flash::Helpers

Overview

Storage

Instance Method Summary

Instance Method Details

#flash ⇒ Storage

Returns the flash storage object.

Returns:

Since:

  • 0.10.8

#redirect(url) ⇒ Object #redirect(url, status_code) ⇒ Object #redirect(url, status_code, flash_messages) ⇒ Object #redirect(url, flash_messages) ⇒ Object Also known as: redirect_to

Overloads the existing redirect helper in-order to provide support for flash messages.

Examples:

redirect(dashboard, success: :user_created)
redirect(new_location, 301, notice: 'This page has moved. Please update your bookmarks!!')

Overloads:

  • #redirect(url) ⇒ Object

    Parameters:

  • #redirect(url, status_code) ⇒ Object

    Parameters:

    • url (String)
    • status_code (Integer)
  • #redirect(url, status_code, flash_messages) ⇒ Object

    Parameters:

    • url (String)
    • status_code (Integer)
    • flash_messages (Hash)
  • #redirect(url, flash_messages) ⇒ Object

    Parameters:

    • url (String)
    • flash_messages (Hash)

Since:

  • 0.10.8

© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Flash/Helpers