<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Rails pattern: trim spaces on input</title>
	<atom:link href="http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/feed/" rel="self" type="application/rss+xml" />
	<link>http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/</link>
	<description>Jesu, Juva</description>
	<lastBuildDate>Sat, 21 Jan 2012 20:27:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Rakesh Arora</title>
		<link>http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/#comment-517</link>
		<dc:creator><![CDATA[Rakesh Arora]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 15:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fullvalence.com/?p=53#comment-517</guid>
		<description><![CDATA[This pattern is not working for find_or_create_by_***:

I am getting ConstraintException:column *** is not valid for the resources that are already in the database.

I understand that this is because trimmed_field is using before_validation callback. 

Any idea how to fix this?

Thanks,
-Rakesh]]></description>
		<content:encoded><![CDATA[<p>This pattern is not working for find_or_create_by_***:</p>
<p>I am getting ConstraintException:column *** is not valid for the resources that are already in the database.</p>
<p>I understand that this is because trimmed_field is using before_validation callback. </p>
<p>Any idea how to fix this?</p>
<p>Thanks,<br />
-Rakesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TC</title>
		<link>http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/#comment-377</link>
		<dc:creator><![CDATA[TC]]></dc:creator>
		<pubDate>Mon, 19 Oct 2009 11:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fullvalence.com/?p=53#comment-377</guid>
		<description><![CDATA[Adding that last code to config/environment.rb didn’t work for me —  but putting that code in config/initializers/trimmers.rb *did* work.

Not sure whether this is something in Rails 2.3.4, some plugin’s hand at work, or just dumbness on my part, though :)

Thanks, though — this is just what I was looking for!]]></description>
		<content:encoded><![CDATA[<p>Adding that last code to config/environment.rb didn’t work for me —  but putting that code in config/initializers/trimmers.rb *did* work.</p>
<p>Not sure whether this is something in Rails 2.3.4, some plugin’s hand at work, or just dumbness on my part, though <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks, though — this is just what I was looking for!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

