<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Blah Blah Woof Woof comments on Rails, AJAX requests and flash</title>
    <link>http://vault.openmonkey.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Blah Blah Woof Woof comments</description>
    <item>
      <title>"Rails, AJAX requests and flash" by triley</title>
      <description>&lt;p&gt;My lesson from today: If you are loading Rails actions using &lt;span class="caps"&gt;AJAX&lt;/span&gt;, and your controller is using &lt;code&gt;flash&lt;/code&gt; to pass messages to, for example, an &lt;span class="caps"&gt;RJS&lt;/span&gt; view,  make sure you use &lt;code&gt;flash.now&lt;/code&gt; to assign them.  This way, they will only stay around for the one action instead of persisting for the next &lt;span class="caps"&gt;AJAX&lt;/span&gt; request or full page load.&lt;/p&gt;

</description>
      <pubDate>Tue, 17 Oct 2006 21:37:00 PDT</pubDate>
      <guid>&lt;a href="/articles/2006/10/17/rails-ajax-requests-and-flash"&gt;Rails, AJAX requests and flash&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2006/10/17/rails-ajax-requests-and-flash"&gt;Rails, AJAX requests and flash&lt;/a&gt;</link>
    </item>
  </channel>
</rss>

