Topic: How to make 'flash' work with Ajax requests

One thing that bugged me for a while was how the flash wouldn't be cleared unless you hit another controller action.  If you do an RJS render or a "render :update", then the flash wouldn't show up on the page, and it'd show up on some other irrelevant page.  I read up a little more about FlashHash and came up with two small things to fix this up.  Let me know what you guys think:

http://www.whatcodecraves.com/articles/ … _with_ajax

Because it's what code craves.