compare flash keys with strings to complain with rails 4.1