Created by: gracewashere
Why?
- Flashes were being set using the
flash[:alert] =
syntax, which saves the flash for the next request the user makes (used during redirects, etc). - When users visited the index page and then clicked through to another page, they would still see the index page's flash from the previous request.
This commit switches to the flash.now[:alert] =
syntax, which only
sets the flash for the current request.
Also, switch flashes to use BEM syntax.
Tags: #ruby #design