Skip to content
This repository was archived by the owner on Mar 19, 2020. It is now read-only.

Error handling

Eric Lanfer edited this page Sep 4, 2015 · 2 revisions

To return errors from your controller into our application view just do:

flash[:type] ="ERROR MESSAGE"

Error types

There are several types of errors or notices etc. you can use.

  • success, will generate a green success message box
  • notice, will give you a blue notice box
  • warning, generates a yellow warning box
  • error, will show a red error box

Clone this wiki locally