<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Storing Rails&#8217; Flash object throughout multiple redirects</title>
	<atom:link href="http://blog.trapdoor1.net/2008/04/24/storing-rails-flash-object-throughout-multiple-redirects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trapdoor1.net/2008/04/24/storing-rails-flash-object-throughout-multiple-redirects/</link>
	<description>in a temporary state of transition</description>
	<pubDate>Thu, 04 Dec 2008 00:09:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: robin</title>
		<link>http://blog.trapdoor1.net/2008/04/24/storing-rails-flash-object-throughout-multiple-redirects/#comment-34</link>
		<dc:creator>robin</dc:creator>
		<pubDate>Fri, 09 May 2008 13:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.trapdoor1.net/?p=26#comment-34</guid>
		<description>No problem. I worked it out but didn't think it needed a full write-up... it probably is useful though, so cheers.

Very useful methods anyway... I'd hacked some really quite unpleasant solutions to that little problem before I discovered them.</description>
		<content:encoded><![CDATA[<p>No problem. I worked it out but didn&#8217;t think it needed a full write-up&#8230; it probably is useful though, so cheers.</p>
<p>Very useful methods anyway&#8230; I&#8217;d hacked some really quite unpleasant solutions to that little problem before I discovered them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian Domagala</title>
		<link>http://blog.trapdoor1.net/2008/04/24/storing-rails-flash-object-throughout-multiple-redirects/#comment-35</link>
		<dc:creator>Kristian Domagala</dc:creator>
		<pubDate>Fri, 09 May 2008 04:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.trapdoor1.net/?p=26#comment-35</guid>
		<description>I'm having trouble figuring out (from what you've written) whether or not you've solved this problem for yourself, so please ignore this if you have.

I ran into the exact same issue today, and after following the link from your post above, I found the solution in the form of the "keep" method.

In my case, I have three actions; a, b &#38; c, where a redirects to b with a flash message, and b redirects to c. By default, the flash message is lost by the time c is rendered.

To get around the problem, I changed action 'b' as follows:

  def b
    ...
    flash.keep
    redirect_to :action =&#62; :b
  end

Now when c is rendered, the message set in a is present.

Thanks anyway for the link!</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble figuring out (from what you&#8217;ve written) whether or not you&#8217;ve solved this problem for yourself, so please ignore this if you have.</p>
<p>I ran into the exact same issue today, and after following the link from your post above, I found the solution in the form of the &#8220;keep&#8221; method.</p>
<p>In my case, I have three actions; a, b &amp; c, where a redirects to b with a flash message, and b redirects to c. By default, the flash message is lost by the time c is rendered.</p>
<p>To get around the problem, I changed action &#8216;b&#8217; as follows:</p>
<p>  def b<br />
    &#8230;<br />
    flash.keep<br />
    redirect_to :action =&gt; :b<br />
  end</p>
<p>Now when c is rendered, the message set in a is present.</p>
<p>Thanks anyway for the link!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
