getting the flash hash to persist through redirects

The flash hash persists for exactly one redirect or render. So you should be fine with the default settings.

If you need to keep the flash hash for another request/redirect, you can call flash.keep.

flash.keep # keep the entire flash hash around for an extra request.
flash.keep(:notice) # keep just flash[:notice] for an extra request.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)