Search code examples
ruby-on-railsrubyflash-message

Where are flash messages stored?


I thought they were stored in cookies - but no, cookies inspecting gives me nothing. Sessions do not store them either. So, where I can find them?

I need this to set them directly (not through flash hash).


Solution

  • They are stored in your session store. The default since rails 2.0 is the cookie store, but check in config/initializers/session_store.rb to check if you're using something other than the default.