Rails, AJAX requests and flash
Posted by Tim Riley Wed, 18 Oct 2006 04:37:00 GMT
My lesson from today: If you are loading Rails actions using AJAX, and your controller is using flash to pass messages to, for example, an RJS view, make sure you use flash.now to assign them. This way, they will only stay around for the one action instead of persisting for the next AJAX request or full page load.