<?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; Rails</title>
	<atom:link href="http://www.gagahappy.com/tag/rails/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>rake db:migrate CREATE TABLE `schema_migrations`</title>
		<link>http://www.gagahappy.com/rake-dbmigrate-create-table-schema_migrations/</link>
		<comments>http://www.gagahappy.com/rake-dbmigrate-create-table-schema_migrations/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 17:45:58 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1772</guid>
		<description><![CDATA[<p>在使用rails 2.3.8与mysql 5.1 开发时，运行rake db:migrate 出现CREATE TABLE `schema_migrations` (`version`varchar(255) NOT NULL) ENGINE=InnoDB错误提示，原因是新版mysql的客户端连接库[......]</p><p class='read-more'><a href='http://www.gagahappy.com/rake-dbmigrate-create-table-schema_migrations/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/rake-dbmigrate-create-table-schema_migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>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 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>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>
		<item>
		<title>render partial</title>
		<link>http://www.gagahappy.com/render-partial/</link>
		<comments>http://www.gagahappy.com/render-partial/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 14:32:45 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1322</guid>
		<description><![CDATA[<p>  # Renders the same partial with a local variable.<br />
  render :partial => &#8220;person&#8221;, :locals => { :name => &#8220;david&#8221; }</p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/render-partial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>validates_inclusion_of</title>
		<link>http://www.gagahappy.com/validates_inclusion_of/</link>
		<comments>http://www.gagahappy.com/validates_inclusion_of/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 15:01:36 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1324</guid>
		<description><![CDATA[<p>  class Person < ActiveRecord::Base<br />
    validates_inclusion_of :gender, :in => %w( m f )<br />
    validates_inclusion_of :age, :in => 0..99<br />
    validates_inclusion_of :format, :[......]</p><p class='read-more'><a href='http://www.gagahappy.com/validates_inclusion_of/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/validates_inclusion_of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails2.0快速体验</title>
		<link>http://www.gagahappy.com/rails-2-quick-show/</link>
		<comments>http://www.gagahappy.com/rails-2-quick-show/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 06:48:45 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1132</guid>
		<description><![CDATA[<p>rails2.0快速体验<br />
1、新建一个Rails程序<br />
rails todo<br />
这时使用的是默认的sqlite3做数据库。如果你希望使用mysql，则输入<br />
rails todo -d mysql  </p>
<p>2、修改数据库配置文件<br />
cd todo<br />
进入项目所在文件夹，找config目录下的database.ym[......]</p><p class='read-more'><a href='http://www.gagahappy.com/rails-2-quick-show/'>继续阅读</a></p>]]></description>
		<wfw:commentRss>http://www.gagahappy.com/rails-2-quick-show/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
