Flash should be empty (typeError)?

Hi,

I’m trying to test wether flash.now[:okay] is not empty, but I always
get the following error.

TypeError in ‘UserController’ can’t convert String into Integer

Can’t I test the flash if they are not emtpy?

Thanks for help :smiley:

//Jamal

http://www.kerrybuckley.com/2007/07/04/correct-use-of-the-flash-in-rails/

for anyone else facing the same problem :slight_smile: