<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Live Forms.  Part 1: Putting the errors in the right place</title>
	<atom:link href="http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/</link>
	<description>Software for scientists, by scientists</description>
	<lastBuildDate>Sat, 09 Jan 2010 13:45:21 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JULIEN</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-18492</link>
		<dc:creator>JULIEN</dc:creator>
		<pubDate>Wed, 04 Nov 2009 19:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-18492</guid>
		<description>What if I want to include the field name at the beginning of the error message?</description>
		<content:encoded><![CDATA[<p>What if I want to include the field name at the beginning of the error message?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoneageblog.com &#187; Blog Archive &#187; Rails : Validation de formulaire en AJAX step by step !</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-589</link>
		<dc:creator>Stoneageblog.com &#187; Blog Archive &#187; Rails : Validation de formulaire en AJAX step by step !</dc:creator>
		<pubDate>Sun, 04 Feb 2007 17:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-589</guid>
		<description>[...] Il est intÃ©ressant de pouvoir sÃ©parer les erreurs les unes des autres, cela permet ainsi d&#8217;afficher les erreurs concernant le login prÃ¨s du login et les erreurs concernant le mot de passe prÃ¨s du mot de passe. J&#8217;utilise pour cela la mÃ©thode trouvÃ©e ici. [...]</description>
		<content:encoded><![CDATA[<p>[...] Il est intÃ©ressant de pouvoir sÃ©parer les erreurs les unes des autres, cela permet ainsi d&#8217;afficher les erreurs concernant le login prÃ¨s du login et les erreurs concernant le mot de passe prÃ¨s du mot de passe. J&#8217;utilise pour cela la mÃ©thode trouvÃ©e ici. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Lang</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-538</link>
		<dc:creator>Matthew Lang</dc:creator>
		<pubDate>Fri, 02 Feb 2007 10:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-538</guid>
		<description>Working!  Thanks for the reply Kevin.  Looking forward to part 2.</description>
		<content:encoded><![CDATA[<p>Working!  Thanks for the reply Kevin.  Looking forward to part 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Olbrich</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-528</link>
		<dc:creator>Kevin Olbrich</dc:creator>
		<pubDate>Thu, 01 Feb 2007 16:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-528</guid>
		<description>Hopefully part 2 will be coming along soon, my schedule should be clearing up in a week or so.

The problem stems from the &#039;errors&#039; array not being initialized.  If you create a new object from scratch, it generally isn&#039;t.  

My suggestion is to call &#039;valid?&#039; on your object in the controller action before the view is rendered.</description>
		<content:encoded><![CDATA[<p>Hopefully part 2 will be coming along soon, my schedule should be clearing up in a week or so.</p>
<p>The problem stems from the &#8216;errors&#8217; array not being initialized.  If you create a new object from scratch, it generally isn&#8217;t.  </p>
<p>My suggestion is to call &#8216;valid?&#8217; on your object in the controller action before the view is rendered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Lang</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-527</link>
		<dc:creator>Matthew Lang</dc:creator>
		<pubDate>Thu, 01 Feb 2007 16:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-527</guid>
		<description>I also got the same error message as Jean-Sebastien. It&#039;s a great article, when will the 2nd part of this series be posted?</description>
		<content:encoded><![CDATA[<p>I also got the same error message as Jean-Sebastien. It&#8217;s a great article, when will the 2nd part of this series be posted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-183</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Fri, 15 Dec 2006 11:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-183</guid>
		<description>You can do it the short way:



will display any error asociated with a validation with the given attribute

e.g

@person.name

</description>
		<content:encoded><![CDATA[<p>You can do it the short way:</p>
<p>will display any error asociated with a validation with the given attribute</p>
<p>e.g</p>
<p>@person.name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jean-sÃ©bastien</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-85</link>
		<dc:creator>jean-sÃ©bastien</dc:creator>
		<pubDate>Thu, 09 Nov 2006 00:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-85</guid>
		<description>I&#039;ve an error with it : &quot;err = instance_variable_get(&quot;@#{object}&quot;).errors.on(method).to_sentence rescue instance_variable_get(&quot;@#{object}&quot;).errors.on(method)&quot; make crashed :

You have a nil object when you didn&#039;t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.errors</description>
		<content:encoded><![CDATA[<p>I&#8217;ve an error with it : &#8220;err = instance_variable_get(&#8221;@#{object}&#8221;).errors.on(method).to_sentence rescue instance_variable_get(&#8221;@#{object}&#8221;).errors.on(method)&#8221; make crashed :</p>
<p>You have a nil object when you didn&#8217;t expect it!<br />
You might have expected an instance of ActiveRecord::Base.<br />
The error occured while evaluating nil.errors</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/comment-page-1/#comment-83</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 07 Nov 2006 07:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/#comment-83</guid>
		<description>Looks useful.  Could you add a bit of explnation for the application helper?</description>
		<content:encoded><![CDATA[<p>Looks useful.  Could you add a bit of explnation for the application helper?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
