Blah Blah Woof Woof

Archived content 2005-2007

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 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.



Use the following link to trackback from your own site:

(leave url/email »)