Rails flash clear method renamed to discard
Posted on April 07, 2008 at 01:05 PM
If you are wondering why your flash is not getting cleared in case you use some sort of cacheable plugin or anything of that matter.
The method to clear the flash previously called
clearwas recently renamed to
discard
Comments
There is 1 comment on this post. Post yours →
May be worth pointing out hear that this of course operates on the flash object its self. As in…
flash.discard
Though this seams obvious, it is not instantly so to new comers to rails still getting to grips with its API and mass array of convenience methods
Thanks
Paul
Post a comment
Required fields in bold.