<?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: Sexy Validation in Edge Rails (Rails 3)</title>
	<atom:link href="http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/</link>
	<description>Lightweight ramblings</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:52:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jamie</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2926</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 31 Aug 2010 22:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2926</guid>
		<description>@Ravicious I believe your email validator would need to support the :allow_nil option.</description>
		<content:encoded><![CDATA[<p>@Ravicious I believe your email validator would need to support the :allow_nil option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravicious</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2925</link>
		<dc:creator>Ravicious</dc:creator>
		<pubDate>Tue, 31 Aug 2010 18:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2925</guid>
		<description>Hi,

What about :allow_nil? I&#039;ve tried `validates :email, :email =&gt; {:allow_nil =&gt; true}`, but it hasn&#039;t worked.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What about :allow_nil? I&#8217;ve tried `validates :email, :email =&gt; {:allow_nil =&gt; true}`, but it hasn&#8217;t worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby on Rails / [Перевод] Ruby on Rails 3 — Заметки к финальному релизу</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2924</link>
		<dc:creator>Ruby on Rails / [Перевод] Ruby on Rails 3 — Заметки к финальному релизу</dc:creator>
		<pubDate>Sun, 29 Aug 2010 20:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2924</guid>
		<description>[...] Sexy Validation in Rails 3 [...]</description>
		<content:encoded><![CDATA[<p>[...] Sexy Validation in Rails 3 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby on Rails / Ruby on Rails 3 — Заметки к финальному релизу</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2923</link>
		<dc:creator>Ruby on Rails / Ruby on Rails 3 — Заметки к финальному релизу</dc:creator>
		<pubDate>Sun, 29 Aug 2010 19:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2923</guid>
		<description>[...] Sexy Validation in Rails 3 [...]</description>
		<content:encoded><![CDATA[<p>[...] Sexy Validation in Rails 3 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2858</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 26 May 2010 12:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2858</guid>
		<description>@Lisinge The uniqueness validator is case sensitive by default so you could do something like:

validates :name, :uniqueness =&gt; true

...or if you wanted it not to be case sensitive:

validates :name, :uniqueness =&gt; { :case_sensitive =&gt; false }</description>
		<content:encoded><![CDATA[<p>@Lisinge The uniqueness validator is case sensitive by default so you could do something like:</p>
<p>validates :name, :uniqueness => true</p>
<p>&#8230;or if you wanted it not to be case sensitive:</p>
<p>validates :name, :uniqueness => { :case_sensitive => false }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisinge</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2856</link>
		<dc:creator>Lisinge</dc:creator>
		<pubDate>Thu, 20 May 2010 16:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2856</guid>
		<description>How can i validate case sensitive uniqueness with sexy validation?</description>
		<content:encoded><![CDATA[<p>How can i validate case sensitive uniqueness with sexy validation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2855</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 19 May 2010 13:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2855</guid>
		<description>@Thomas Williams To suppress the numericality validator based on the outcome of a given method you would do:

validates :width, :numericality =&gt; { :unless =&gt; :fullscreen? }

You can supply a hash with any options that validates_numericality_of accepts. The &quot;:numericality =&gt; true&quot; simply says use the numericality validator, whereas &quot;:numericality =&gt; my_options_hash&quot; passes any options to the validator... think of the &quot;validates&quot; method as a shortcut to the &quot;validates_?_of&quot; methods.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>@Thomas Williams To suppress the numericality validator based on the outcome of a given method you would do:</p>
<p>validates :width, :numericality => { :unless => :fullscreen? }</p>
<p>You can supply a hash with any options that validates_numericality_of accepts. The &#8220;:numericality => true&#8221; simply says use the numericality validator, whereas &#8220;:numericality => my_options_hash&#8221; passes any options to the validator&#8230; think of the &#8220;validates&#8221; method as a shortcut to the &#8220;validates_?_of&#8221; methods.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Williams</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2854</link>
		<dc:creator>Thomas Williams</dc:creator>
		<pubDate>Wed, 19 May 2010 13:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2854</guid>
		<description>Jamie,
Is there a way to suppress a single / all validations based on a condition. For example

validates :width, :numericality =&gt; true, :unless =&gt; :fullscreen?

In a similar way to what I can do with the old school validates_numericality_of method?</description>
		<content:encoded><![CDATA[<p>Jamie,<br />
Is there a way to suppress a single / all validations based on a condition. For example</p>
<p>validates :width, :numericality =&gt; true, :unless =&gt; :fullscreen?</p>
<p>In a similar way to what I can do with the old school validates_numericality_of method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2814</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 01 Apr 2010 20:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2814</guid>
		<description>@Joe Yes that will work too.</description>
		<content:encoded><![CDATA[<p>@Joe Yes that will work too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Smith</title>
		<link>http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/comment-page-1/#comment-2813</link>
		<dc:creator>Joe Smith</dc:creator>
		<pubDate>Thu, 01 Apr 2010 19:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://thelucid.com/?p=533#comment-2813</guid>
		<description>Jamie, wouldn&#039;t the correct syntax for what ahe wanted be:
validates :price, :numericality =&gt; {:greater_than =&gt; 100}

or something like that? If that is not implemented then it really should be. I mean, that is clearly the right way to pass in options for a validator, and it fits well with true if no options need to be specified, since a hash is definitely a true value in ruby.</description>
		<content:encoded><![CDATA[<p>Jamie, wouldn&#8217;t the correct syntax for what ahe wanted be:<br />
validates :price, :numericality =&gt; {:greater_than =&gt; 100}</p>
<p>or something like that? If that is not implemented then it really should be. I mean, that is clearly the right way to pass in options for a validator, and it fits well with true if no options need to be specified, since a hash is definitely a true value in ruby.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
