<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>In a world where ninja&#039;s rule, i am Solar Sneeze Phantom &#187; General</title>
	<atom:link href="http://www.marcosantos.com/archives/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcosantos.com</link>
	<description>In a world where ninja&#039;s rule, i am Solar Sneeze Phantom</description>
	<lastBuildDate>Sun, 21 Feb 2010 09:59:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Code Syntax Highlight Test</title>
		<link>http://www.marcosantos.com/archives/2009/03/22/code-syntax-highlight-test/</link>
		<comments>http://www.marcosantos.com/archives/2009/03/22/code-syntax-highlight-test/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 17:16:11 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.marcosantos.com/?p=16</guid>
		<description><![CDATA[Testing the code syntax highlight: class Field < ActiveRecord::Base # validates_format_of :data, #validates the email address is a correct one # :with => /^([^@s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})$/i, # :message => [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.marcosantos.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/16.jpeg&amp;w=200&amp;h=150&amp;zc=1&amp;ft=jpg' alt='post thumbnail' /></p>
<p>Testing the code syntax highlight:</p>
<pre name="code" class="html:nogutter:ruby" cols="60">
class Field < ActiveRecord::Base
#  validates_format_of :data, #validates the email address is a correct one
#     :with => /^([^@s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})$/i,
#     :message => "is not a valid email address"

# validates_inclusion_of :data,
#   :in => 1..99,
#   :message => "is out of bounds"

# validates_acceptance_of :check1,
#   :message => "was not checked"

# validates_confirmation_of :data,
#   :message => "should match confirmation"

# validates_length_of :data,
#  :maximum => 8,
#  :message => "its too long"

# validates_length_of :data,
#   :minimum => 4,
#   :message => "its too short"

  protected
  def validate
    errors.add(:data, "is not 'Steve'") unless data == "Steve"
  end
end
</pre>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.marcosantos.com/archives/2009/03/22/code-syntax-highlight-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
