<?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: Using the rails &#8220;flash&#8221; properly.</title>
	<atom:link href="http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/</link>
	<description>Ruby, Ruby on Rails, Los Angeles, Technology, Geek, Science, Life</description>
	<pubDate>Thu, 04 Dec 2008 21:36:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: &#187; Use ...</title>
		<link>http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/#comment-21460</link>
		<dc:creator>&#187; Use ...</dc:creator>
		<pubDate>Fri, 28 Mar 2008 03:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/#comment-21460</guid>
		<description>[...] quote form daniel fischer&#8217;s blog [...]</description>
		<content:encoded><![CDATA[<p>[...] quote form daniel fischer&#8217;s blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James O'Kell...</title>
		<link>http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/#comment-12307</link>
		<dc:creator>James O'Kell...</dc:creator>
		<pubDate>Wed, 10 Oct 2007 07:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.danielfischer.com/2007/09/27/using-the-rails-flash-properly/#comment-12307</guid>
		<description>I would also like to point out that a single flash area is atypical of a real world web application. Usually you have many partials on a single page and each of them call to a different controller action.

Instead of doing flash[:notice] all the time (and thus only having 1 flash point) or even looping through flash to diaply in a single flash point, instead do this:

(We have a login partial on the homepage, and this in the users controller)
&lt;code&gt;
flash[:partial_name_notice] = "Invalid password."
&lt;/code&gt;
(Then we have the homepage view that has a partial for login)
&lt;code&gt;

&lt;/code&gt;

You can have many, many, many different flash points on each view so the user gets the notice where they expect it.</description>
		<content:encoded><![CDATA[<p>I would also like to point out that a single flash area is atypical of a real world web application. Usually you have many partials on a single page and each of them call to a different controller action.</p>
<p>Instead of doing flash[:notice] all the time (and thus only having 1 flash point) or even looping through flash to diaply in a single flash point, instead do this:</p>
<p>(We have a login partial on the homepage, and this in the users controller)<br />
<code><br />
flash[:partial_name_notice] = &#8220;Invalid password.&#8221;<br />
</code><br />
(Then we have the homepage view that has a partial for login)<br />
<code></p>
<p></code></p>
<p>You can have many, many, many different flash points on each view so the user gets the notice where they expect it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
