<?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: Rails Model Validators</title>
	<atom:link href="http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/feed/" rel="self" type="application/rss+xml" />
	<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/</link>
	<description>Break Coders Block!</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:29:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Gonzotim</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-232</link>
		<dc:creator>Gonzotim</dc:creator>
		<pubDate>Thu, 05 Feb 2009 14:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-232</guid>
		<description>Brilliant!  I&#039;m a rubynoob, and it&#039;s pages like this that make it possible.  Rails guide not so fun.</description>
		<content:encoded><![CDATA[<p>Brilliant!  I&#8217;m a rubynoob, and it&#8217;s pages like this that make it possible.  Rails guide not so fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-231</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Mon, 05 Jan 2009 13:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-231</guid>
		<description>Thanks. I could not even find these on the Rails guide.</description>
		<content:encoded><![CDATA[<p>Thanks. I could not even find these on the Rails guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terra</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-230</link>
		<dc:creator>Terra</dc:creator>
		<pubDate>Tue, 07 Oct 2008 15:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-230</guid>
		<description>How can we restict validation of models only in selected forms, say I need validation of model Address in one form but want to ignore in another form ?

Would appreciate your reply

Sira</description>
		<content:encoded><![CDATA[<p>How can we restict validation of models only in selected forms, say I need validation of model Address in one form but want to ignore in another form ?</p>
<p>Would appreciate your reply</p>
<p>Sira</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naushad pasha</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-229</link>
		<dc:creator>naushad pasha</dc:creator>
		<pubDate>Fri, 02 May 2008 10:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-229</guid>
		<description>Good Knowledge of validators - thanks</description>
		<content:encoded><![CDATA[<p>Good Knowledge of validators &#8211; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linoj</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-228</link>
		<dc:creator>linoj</dc:creator>
		<pubDate>Tue, 09 Oct 2007 05:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-228</guid>
		<description>fyi, found this for emails, it&#039;s working for me so far
http://code.dunae.ca/validates_email_format_of</description>
		<content:encoded><![CDATA[<p>fyi, found this for emails, it&#8217;s working for me so far<br />
<a href="http://code.dunae.ca/validates_email_format_of" rel="nofollow">http://code.dunae.ca/validates_email_format_of</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riki</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-227</link>
		<dc:creator>riki</dc:creator>
		<pubDate>Mon, 23 Apr 2007 12:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-227</guid>
		<description>Validates email doesn&#039;t seem to work with international extensions like user@domain.com.au</description>
		<content:encoded><![CDATA[<p>Validates email doesn&#8217;t seem to work with international extensions like <a href="mailto:user@domain.com.au">user@domain.com.au</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bjhess</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-226</link>
		<dc:creator>bjhess</dc:creator>
		<pubDate>Sun, 25 Feb 2007 14:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-226</guid>
		<description>Wordpress, you say?  Try this &lt;a href=&quot;http://priyadi.net/archives/2005/09/27/wordpress-plugin-code-autoescape/&quot; rel=&quot;nofollow&quot;&gt;code auto escape plugin&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>WordPress, you say?  Try this <a href="http://priyadi.net/archives/2005/09/27/wordpress-plugin-code-autoescape/" rel="nofollow">code auto escape plugin</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TechKnow</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-225</link>
		<dc:creator>TechKnow</dc:creator>
		<pubDate>Sat, 24 Feb 2007 16:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-225</guid>
		<description>@bjhess - Yeah, replacing the backslash (\) with a &#092; entity fixed the problem.  Unfortunately I have had to do this type of &#039;fix&#039; one to many times with WP.  But once again, thanks for the heads up on the typo.</description>
		<content:encoded><![CDATA[<p>@bjhess &#8211; Yeah, replacing the backslash (\) with a &amp;#092; entity fixed the problem.  Unfortunately I have had to do this type of &#8216;fix&#8217; one to many times with WP.  But once again, thanks for the heads up on the typo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TechKnow</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-224</link>
		<dc:creator>TechKnow</dc:creator>
		<pubDate>Sat, 24 Feb 2007 16:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-224</guid>
		<description>@bjhess - Thanks for catching the typo.  You are right, it doesn&#039;t work without the backward slash.  But the typo is caused by WordPress itself.  It seems that I do in fact have a slash in the post when I edit it, but when the post is display WP removes that slash.  Maybe i&#039;ll escape the back slash itself with an HTML entity.</description>
		<content:encoded><![CDATA[<p>@bjhess &#8211; Thanks for catching the typo.  You are right, it doesn&#8217;t work without the backward slash.  But the typo is caused by WordPress itself.  It seems that I do in fact have a slash in the post when I edit it, but when the post is display WP removes that slash.  Maybe i&#8217;ll escape the back slash itself with an HTML entity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bjhess</title>
		<link>http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/comment-page-1/#comment-223</link>
		<dc:creator>bjhess</dc:creator>
		<pubDate>Fri, 23 Feb 2007 17:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/07/29/rails-model-validators/#comment-223</guid>
		<description>Wondering if this line ever actually worked:

&lt;pre&gt;
validates_format_of :username, :with =&gt; /^w+$/i,
  :message =&gt; &quot;can only contain letters and numbers.&quot;
&lt;/pre&gt;

I think the &#039;w&#039; needs escaped in order to represent any letter and number versus simply the character &#039;w&#039;.  So the regex would look like: /^\w+$/i</description>
		<content:encoded><![CDATA[<p>Wondering if this line ever actually worked:</p>
<pre>
validates_format_of :username, :with =&gt; /^w+$/i,
  :message =&gt; "can only contain letters and numbers."
</pre>
<p>I think the &#8216;w&#8217; needs escaped in order to represent any letter and number versus simply the character &#8216;w&#8217;.  So the regex would look like: /^\w+$/i</p>
]]></content:encoded>
	</item>
</channel>
</rss>

