<?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>漂自己的移，让别人都撞墙去吧 &#187; Ruby</title>
	<atom:link href="http://www.gagahappy.com/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gagahappy.com</link>
	<description>Life is what? Get busy living or get busy dying</description>
	<lastBuildDate>Tue, 07 Sep 2010 16:03:34 +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>rails项目开发环境一定要与服务器生产环境一致</title>
		<link>http://www.gagahappy.com/rails-dev-production/</link>
		<comments>http://www.gagahappy.com/rails-dev-production/#comments</comments>
		<pubDate>Tue, 25 May 2010 16:24:06 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1633</guid>
		<description><![CDATA[<p>在使用ruby1.8.6时，发现字段串也有.last方法，即取出字符串的最后一位，后来在ruby1.8.7的环境下调用此代码，被告之没有定义last方法，查询api实确没有找到last方法，开发环境下使用的是ruby1.8.6版本，而ruby1.8.7是生产环境下的版本，还好发现的早，错误及时在发生[......]</p><p class='read-more'><a href='http://www.gagahappy.com/rails-dev-production/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/rails-dev-production/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby 安装 rmagick</title>
		<link>http://www.gagahappy.com/ruby-install-rmagick/</link>
		<comments>http://www.gagahappy.com/ruby-install-rmagick/#comments</comments>
		<pubDate>Sun, 23 May 2010 13:28:34 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1622</guid>
		<description><![CDATA[<p>sudo apt-get install libmagick9-dev ruby1.8-dev<br />
sudo apt-get install imagemagick<br />
sudo gem install rmagick</p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/ruby-install-rmagick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>奇怪的ruby case</title>
		<link>http://www.gagahappy.com/ruby-case-bug/</link>
		<comments>http://www.gagahappy.com/ruby-case-bug/#comments</comments>
		<pubDate>Thu, 20 May 2010 15:05:12 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1627</guid>
		<description><![CDATA[<p>ruby中的条件判断语句case我们都不应该陌生吧，在view层使用时出现了这样一个怪现象。<br />
如果这样写<br />
<span style="color: #ff0000;">&#60;% case 条件表达示 %&#62;<br />
&#60;% when &#8220;条件1&#8243;%&#62;</span></p>
<p>标题</p>
<p>&#60;% when &#8220;条件2&#8243;%&#62;</p>
<p>标题</p>
[......]<p class='read-more'><a href='http://www.gagahappy.com/ruby-case-bug/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/ruby-case-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 字符串转换成数字</title>
		<link>http://www.gagahappy.com/mysql-string-cast-to-number/</link>
		<comments>http://www.gagahappy.com/mysql-string-cast-to-number/#comments</comments>
		<pubDate>Wed, 05 May 2010 10:21:46 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1578</guid>
		<description><![CDATA[<p>在mysql中使用cast 函数将数字转换字符时，发现这样一个现象，将字符串“6,666”转换为数字时，预期值应该为6666，但实际值为6，并且rails的1.22版本也存在同样的问题。</p>
<p>解决方法，很无奈，将“6,666”中的&#8221;,&#8221;去掉，再进行转换。</p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/mysql-string-cast-to-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails redirect_to</title>
		<link>http://www.gagahappy.com/rails-redirect_to/</link>
		<comments>http://www.gagahappy.com/rails-redirect_to/#comments</comments>
		<pubDate>Mon, 03 May 2010 16:30:35 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1576</guid>
		<description><![CDATA[<p>做了一个出错后跳转的页面，运行后发现程序进入死循环，查看日志发现页面被回指到了自己，原因是在redirect_to的时候自动继承了链接中的参数，由此得出结论，在带参数的情况下将页面回指到自己时，如果只指定了action，链接的参数会被自动继承，若要去掉参数，需要在redirect_to的时候重新定义[......]</p><p class='read-more'><a href='http://www.gagahappy.com/rails-redirect_to/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/rails-redirect_to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby 类测试</title>
		<link>http://www.gagahappy.com/ruby-%e7%b1%bb%e6%b5%8b%e8%af%95/</link>
		<comments>http://www.gagahappy.com/ruby-%e7%b1%bb%e6%b5%8b%e8%af%95/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 15:55:43 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1558</guid>
		<description><![CDATA[<p>如题</p>
<p><img src="http://www.gagahappy.com/wp-content/uploads/2010/04/ruby_test.jpg" alt="ruby_test" title="ruby_test" width="420" height="415" class="alignnone size-full wp-image-1561" /></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/ruby-%e7%b1%bb%e6%b5%8b%e8%af%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>小试重构</title>
		<link>http://www.gagahappy.com/try-reconstruction/</link>
		<comments>http://www.gagahappy.com/try-reconstruction/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:25:22 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1392</guid>
		<description><![CDATA[<p>试着把开发项目的一个子模块重构了一下，可能也算不上重构，除了时间上比不重构时花的要长外，也更加的累人。难道是重构的思路不对？</p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/try-reconstruction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby 1.8.7 and rails 1.2.2完美匹配</title>
		<link>http://www.gagahappy.com/ruby-1-8-7-and-rails-1-2-2/</link>
		<comments>http://www.gagahappy.com/ruby-1-8-7-and-rails-1-2-2/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:34:52 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Gossip]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1365</guid>
		<description><![CDATA[<p>由于ruby高版本的ruby与低版本的rails存在着兼容性问题，导致在不同的版本之间都有着这样或那样的问题，如（ruby1.8.7与rails 1.2.2就存在mysql接口调用问题），经过一番试验，发现ruby 1.8.7 (2009-06-12 patchlevel 174)与rails1.2[......]</p><p class='read-more'><a href='http://www.gagahappy.com/ruby-1-8-7-and-rails-1-2-2/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/ruby-1-8-7-and-rails-1-2-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby与rails版本差异不能连接mysql</title>
		<link>http://www.gagahappy.com/ruby-rails-not-conn-mysql/</link>
		<comments>http://www.gagahappy.com/ruby-rails-not-conn-mysql/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 14:10:39 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1333</guid>
		<description><![CDATA[<p>由于ruby与rails版本差异，可能会出现在使用低版本的rails时，出现不能连接mysql的情况。<br />
现象：ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/vendor/mysql.rb:566:in `initi[......]</p><p class='read-more'><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/ruby-rails-not-conn-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>image_tag</title>
		<link>http://www.gagahappy.com/image_tag/</link>
		<comments>http://www.gagahappy.com/image_tag/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 10:33:55 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1326</guid>
		<description><![CDATA[<p> image_tag(&#8220;icon&#8221;)  # =><br />
   <img src="/images/icon" alt="Icon" /><br />
 image_tag(&#8220;icon.png&#8221;)  # =><br />
   <img src="/images/icon.png" alt="Icon" /><br />
 image_tag(&#8220;icon.png&#8221;, :size => &#8220;16&#215;10&#8243[......]</p><p class='read-more'><a href='http://www.gagahappy.com/image_tag/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/image_tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
