scholarslab/prism — Issue #29: Flash messages
Author: erochest
Created: 2012-02-01 18:33:17+00:00
State: open
Labels: bug

This one is really for the design team.

Rails uses a feature called flash messages to communicate with the user. For example, if you log in but give the wrong password, it uses a flash message to tell the user that.

A place for these flash messages needs to be designed into every page.

Flash messages can be found in the templates using in the `flash` method. It returns a hash with possible keys of `:alert`, `:warning`, and `:error`.

The template needs to test whether there is a value for each of those keys and display it appropriately, for example, wrapped in a `div` with a class matching the type of flash message, plus styling.

Putting this in a partial template would keep the parent template cleaner.