refactored the flash code, spent an hour on trying to figure out a Rails 3 bug, which was in the helper file, in the case, you need to use ' ' for the words after when