<?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.chentianwen.net/wordpress/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chentianwen.net/wordpress</link>
	<description>Life has to be exciting.</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:34:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Make compass working with sass in rails3.1</title>
		<link>http://www.chentianwen.net/wordpress/2011/12/13/make-compass-working-with-sass-in-rails3-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=make-compass-working-with-sass-in-rails3-1</link>
		<comments>http://www.chentianwen.net/wordpress/2011/12/13/make-compass-working-with-sass-in-rails3-1/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 12:21:01 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Sass]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=581</guid>
		<description><![CDATA[<p id="LC1">Add the following to your application.rb</p> class Application &#60; Rails::Application   config.sass.load_paths &#60;&#60; &#8220;#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets&#8221;   config.sass.load_paths &#60;&#60; &#8220;#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets&#8221; end]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/12/13/make-compass-working-with-sass-in-rails3-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>warning: toplevel constant XX referenced by YY::XX (review)</title>
		<link>http://www.chentianwen.net/wordpress/2011/11/01/warning-toplevel-constant-xx-referenced-by-yyxx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=warning-toplevel-constant-xx-referenced-by-yyxx</link>
		<comments>http://www.chentianwen.net/wordpress/2011/11/01/warning-toplevel-constant-xx-referenced-by-yyxx/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 00:43:33 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=558</guid>
		<description><![CDATA[<p>When I try to move the Devise stuff into a module User::Devise and include it in class User, I got this warning &#8216;warning: toplevel constant Devise referenced by User::Devise&#8217;</p> <p>Please see the code before and after for a solution.</p> <p>Solution is to make User::Devise before you do the include for class User</p> <p>&#160;</p>]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/11/01/warning-toplevel-constant-xx-referenced-by-yyxx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails postgresql adapter options</title>
		<link>http://www.chentianwen.net/wordpress/2011/10/17/rails-postgresql-adapter-options/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-postgresql-adapter-options</link>
		<comments>http://www.chentianwen.net/wordpress/2011/10/17/rails-postgresql-adapter-options/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 05:06:01 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=533</guid>
		<description><![CDATA[from http://ar.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html :host - Defaults to &#8220;localhost&#8221;. :port - Defaults to 5432. :username - Defaults to nothing. :password - Defaults to nothing. :database - The name of the database. No default, must be provided. :<a href="http://ar.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html#M000252">schema_search_path</a> - An optional schema search path for the connection given as a string of comma-separated schema names. This is backward-compatible with the :schema_order option. :encoding - An optional client [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/10/17/rails-postgresql-adapter-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>trick using question mark in rails model</title>
		<link>http://www.chentianwen.net/wordpress/2011/10/17/trick-using-question-mark-in-rails-model/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=trick-using-question-mark-in-rails-model</link>
		<comments>http://www.chentianwen.net/wordpress/2011/10/17/trick-using-question-mark-in-rails-model/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 04:54:25 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=530</guid>
		<description><![CDATA[p = Person.new p.first_name = 'Tian' p.last_name = nil p.first_name? # =&#62; true p.last_name? # =&#62; false]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/10/17/trick-using-question-mark-in-rails-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails: Global access to Rake DSL methods is deprecated</title>
		<link>http://www.chentianwen.net/wordpress/2011/09/16/rails-global-access-to-rake-dsl-methods-is-deprecated/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-global-access-to-rake-dsl-methods-is-deprecated</link>
		<comments>http://www.chentianwen.net/wordpress/2011/09/16/rails-global-access-to-rake-dsl-methods-is-deprecated/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 01:41:17 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rake]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=483</guid>
		<description><![CDATA[<p>from http://benwoodall.com/2011/06/rails-global-access-to-rake-dsl-methods-is-deprecated/</p> So apparently the newest version of Rake (0.9+) breaks rails. You will get the error: WARNING: Global access to Rake DSL methods is deprecated. Please Include ... Rake::DSL into classes and modules which use the Rake DSL methods. The quick fix is to downgrade to Rake 0.8.7, but you can also add this little [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/09/16/rails-global-access-to-rake-dsl-methods-is-deprecated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capistrano deploy a branch or current commit</title>
		<link>http://www.chentianwen.net/wordpress/2011/09/05/capistrano-deploy-a-branch-or-current-commit/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=capistrano-deploy-a-branch-or-current-commit</link>
		<comments>http://www.chentianwen.net/wordpress/2011/09/05/capistrano-deploy-a-branch-or-current-commit/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 04:55:13 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Branch]]></category>
		<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=472</guid>
		<description><![CDATA[<p>deploy a branch</p> set :branch, $1 if `git branch` =~ /\* (\S+)\s/m <p>deploy current commit</p> set :branch, $1 if `git rev-parse HEAD` =~ /(\S+)/]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/09/05/capistrano-deploy-a-branch-or-current-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Override the validation message without the humanized column name in Rails</title>
		<link>http://www.chentianwen.net/wordpress/2011/08/19/override-the-validation-message-without-the-humanized-column-name-in-rails/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=override-the-validation-message-without-the-humanized-column-name-in-rails</link>
		<comments>http://www.chentianwen.net/wordpress/2011/08/19/override-the-validation-message-without-the-humanized-column-name-in-rails/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 07:01:21 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=460</guid>
		<description><![CDATA[<p>This trick is for Rails 3 (maybe Rails 2)</p> <p>Just add a leading &#8216;^&#8217; in the string as below:</p> validates_presence_of :role_id, :message =&#62; '^Please select a role']]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/08/19/override-the-validation-message-without-the-humanized-column-name-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show ActiveRecord SQL in Rails 3 Console</title>
		<link>http://www.chentianwen.net/wordpress/2011/06/02/show-activerecord-sql-in-rails-3-console/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=show-activerecord-sql-in-rails-3-console</link>
		<comments>http://www.chentianwen.net/wordpress/2011/06/02/show-activerecord-sql-in-rails-3-console/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 07:47:02 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=431</guid>
		<description><![CDATA[<p>from: http://jeffancel.com/blog/show-activerecord-sql-in-rails-3-console/2011/03</p> <p>If you want to show sql in your console for Active Record, then you may have run across the past Rails Recipes book or similar formulas for Rails &#60; v3.0.  I just tweaked a formula I saw in that book to work with Rails 3 and here it is (This is designed to work [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/06/02/show-activerecord-sql-in-rails-3-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails tracks online users&#8217; session (DB based session store)</title>
		<link>http://www.chentianwen.net/wordpress/2011/05/30/rails-tracks-online-users-session-db-based-session-store/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-tracks-online-users-session-db-based-session-store</link>
		<comments>http://www.chentianwen.net/wordpress/2011/05/30/rails-tracks-online-users-session-db-based-session-store/#comments</comments>
		<pubDate>Mon, 30 May 2011 05:37:03 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=428</guid>
		<description><![CDATA[<p>ActiveRecord::SessionStore::Session.find</p>]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/05/30/rails-tracks-online-users-session-db-based-session-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3: Routing Examples</title>
		<link>http://www.chentianwen.net/wordpress/2011/05/23/rails-3-routing-examples/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-3-routing-examples</link>
		<comments>http://www.chentianwen.net/wordpress/2011/05/23/rails-3-routing-examples/#comments</comments>
		<pubDate>Mon, 23 May 2011 02:06:34 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=422</guid>
		<description><![CDATA[<p>from <a href="http://markconnell.co.uk/posts/2010/02/rails-3-routing-examples">http://markconnell.co.uk/posts/2010/02/rails-3-routing-examples</a></p> <p>Rails 3 introduced a new routing DSL that is a little bit different from the Rails 2 version. This quick guide covers a few examples of the new routes, and how they compare to Rails 2.</p> Simple routes <p>Create a basic route that will respond to http://localhost:300/hello_world</p> # Rails 2: map.connect 'hello_world', :controller =&#62; [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2011/05/23/rails-3-routing-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

