fix error generating message for flash in Rails 3.2