<?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>Hints and Kinks &#187; rails</title>
	<atom:link href="http://matthew.mceachen.us/blog/tags/rails/feed" rel="self" type="application/rss+xml" />
	<link>http://matthew.mceachen.us/blog</link>
	<description>Tips and tricks and howtos galore</description>
	<lastBuildDate>Wed, 18 Jan 2012 12:17:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating acts_as_&#8230; gems for Rails 3.1.x</title>
		<link>http://matthew.mceachen.us/blog/creating-acts_as_-gems-for-rails-3-1-x-1146.html</link>
		<comments>http://matthew.mceachen.us/blog/creating-acts_as_-gems-for-rails-3-1-x-1146.html#comments</comments>
		<pubDate>Sat, 21 May 2011 19:03:38 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=1146</guid>
		<description><![CDATA[There are a lot of posts on how to build rubygems. With Rails 3.1, though, they&#8217;re all old and busted. The new hotness is built right into rails now. Just incant rails plugin new APP_PATH You&#8217;ll get: a .gemspec and &#8230; <a href="http://matthew.mceachen.us/blog/creating-acts_as_-gems-for-rails-3-1-x-1146.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/creating-acts_as_-gems-for-rails-3-1-x-1146.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hierarchical Tagging with Rails 3 and Closure Trees</title>
		<link>http://matthew.mceachen.us/blog/hierarchical-tagging-with-rails-3-and-closure-trees-1131.html</link>
		<comments>http://matthew.mceachen.us/blog/hierarchical-tagging-with-rails-3-and-closure-trees-1131.html#comments</comments>
		<pubDate>Wed, 18 May 2011 06:26:15 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[closure tree]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygem]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=1131</guid>
		<description><![CDATA[In rebuilding PhotoStructure on Rails, I was surprised that one of the most popular gem for trees used a nested set model. Nested sets are performant for reads, but for adding and deleting nodes, it&#8217;s extremely expensive &#8212; on average, &#8230; <a href="http://matthew.mceachen.us/blog/hierarchical-tagging-with-rails-3-and-closure-trees-1131.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/hierarchical-tagging-with-rails-3-and-closure-trees-1131.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Left outer joining a has_and_belongs_to_many in a Rails 3 scope</title>
		<link>http://matthew.mceachen.us/blog/left-outer-joining-a-has_and_belongs_to_many-in-a-rails-3-scope-1089.html</link>
		<comments>http://matthew.mceachen.us/blog/left-outer-joining-a-has_and_belongs_to_many-in-a-rails-3-scope-1089.html#comments</comments>
		<pubDate>Thu, 17 Mar 2011 00:06:30 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=1089</guid>
		<description><![CDATA[Winner for esoteric rails 3 question, but the googles (and stack overflow and the rails docs) all failed me. Here&#8217;s the pretty simple scope syntax for finding posts with or without tags. Pretty, eh? class Tag &#60; ActiveRecord::Base has_and_belongs_to_many :posts &#8230; <a href="http://matthew.mceachen.us/blog/left-outer-joining-a-has_and_belongs_to_many-in-a-rails-3-scope-1089.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/left-outer-joining-a-has_and_belongs_to_many-in-a-rails-3-scope-1089.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails 3.0.5 broke my routes and kicked my dog</title>
		<link>http://matthew.mceachen.us/blog/rails-3-0-5-broke-my-routes-and-kicked-my-dog-1076.html</link>
		<comments>http://matthew.mceachen.us/blog/rails-3-0-5-broke-my-routes-and-kicked-my-dog-1076.html#comments</comments>
		<pubDate>Wed, 02 Mar 2011 19:35:19 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Software Development Mantras]]></category>
		<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=1076</guid>
		<description><![CDATA[We just upgraded AdGrok from Rails 3.0.4 to 3.0.5, which was released a couple days ago. This is a &#8220;patch release,&#8221; which according to the rules, has only backwards compatible bug fixes. A bunch of our integration tests failed before &#8230; <a href="http://matthew.mceachen.us/blog/rails-3-0-5-broke-my-routes-and-kicked-my-dog-1076.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/rails-3-0-5-broke-my-routes-and-kicked-my-dog-1076.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>HOWTO: Force https/SSL for Apache2, Phusion Passenger and Rails</title>
		<link>http://matthew.mceachen.us/blog/howto-force-httpsssl-for-apache2-phusion-passenger-and-rails-1005.html</link>
		<comments>http://matthew.mceachen.us/blog/howto-force-httpsssl-for-apache2-phusion-passenger-and-rails-1005.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 07:39:38 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=1005</guid>
		<description><![CDATA[There&#8217;s a lot of buzz right now about Firesheep and non-secure Rails applications. This is a pretty simple problem to solve with Apache&#8217;s mod_rewrite. If the traffic isn&#8217;t on https, force it to be. This configuration only needs to be &#8230; <a href="http://matthew.mceachen.us/blog/howto-force-httpsssl-for-apache2-phusion-passenger-and-rails-1005.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/howto-force-httpsssl-for-apache2-phusion-passenger-and-rails-1005.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching between Rails 2 and Rails 3 on Mac OS X or Ubuntu with RVM</title>
		<link>http://matthew.mceachen.us/blog/switching-between-rails-2-and-rails-3-on-mac-os-x-or-ubuntu-with-rvm-966.html</link>
		<comments>http://matthew.mceachen.us/blog/switching-between-rails-2-and-rails-3-on-mac-os-x-or-ubuntu-with-rvm-966.html#comments</comments>
		<pubDate>Sun, 24 Oct 2010 04:20:24 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rvm]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=966</guid>
		<description><![CDATA[I&#8217;m migrating AdGrok to Rails 3 this weekend&#8211;what with the new ActiveRecord query functionality, and MongoMapper, and all our gems migrating to Rails 3, it seems like it&#8217;s time. The Railscast (and ASCIIcast) is great, but a couple steps are &#8230; <a href="http://matthew.mceachen.us/blog/switching-between-rails-2-and-rails-3-on-mac-os-x-or-ubuntu-with-rvm-966.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/switching-between-rails-2-and-rails-3-on-mac-os-x-or-ubuntu-with-rvm-966.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HOWTO: Fix Ruby on Rails 2.3.x textarea Value Truncation</title>
		<link>http://matthew.mceachen.us/blog/howto-fix-ruby-on-rails-2-3-x-textarea-value-truncation-942.html</link>
		<comments>http://matthew.mceachen.us/blog/howto-fix-ruby-on-rails-2-3-x-textarea-value-truncation-942.html#comments</comments>
		<pubDate>Thu, 07 Oct 2010 18:04:56 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=942</guid>
		<description><![CDATA[Turns out that Rails versions 2.3.6 through 2.3.8 have a pretty horrid parameter-parsing bug, and I&#8217;m surprised there hasn&#8217;t been more hoopla about it. If you have a textarea form that someone types a quote character into, the value you &#8230; <a href="http://matthew.mceachen.us/blog/howto-fix-ruby-on-rails-2-3-x-textarea-value-truncation-942.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/howto-fix-ruby-on-rails-2-3-x-textarea-value-truncation-942.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dialed-in Rails script/console with pretty printing and history</title>
		<link>http://matthew.mceachen.us/blog/dialed-in-rails-scriptconsole-with-pretty-printing-and-history-892.html</link>
		<comments>http://matthew.mceachen.us/blog/dialed-in-rails-scriptconsole-with-pretty-printing-and-history-892.html#comments</comments>
		<pubDate>Thu, 22 Jul 2010 01:28:50 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=892</guid>
		<description><![CDATA[Edit (as root) your /etc/irbrc: # Some default enhancements/settings for IRB, based on # http://wiki.rubygarden.org/Ruby/page/show/Irb/TipsAndTricks &#160; unless defined? ETC_IRBRC_LOADED &#160; # Require RubyGems by default. require 'rubygems' &#160; begin require &#34;ap&#34; IRB::Irb.class_eval do def output_value ap @context.last_value end end rescue &#8230; <a href="http://matthew.mceachen.us/blog/dialed-in-rails-scriptconsole-with-pretty-printing-and-history-892.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/dialed-in-rails-scriptconsole-with-pretty-printing-and-history-892.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Phusion Passenger on Ruby 1.9.1, Nginx, &amp; Ubuntu 10.04</title>
		<link>http://matthew.mceachen.us/blog/installing-phusion-passenger-on-ruby-1-9-1-nginx-ubuntu-10-04-861.html</link>
		<comments>http://matthew.mceachen.us/blog/installing-phusion-passenger-on-ruby-1-9-1-nginx-ubuntu-10-04-861.html#comments</comments>
		<pubDate>Mon, 17 May 2010 23:27:36 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[phusion passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=861</guid>
		<description><![CDATA[I wrote this a while back, before I knew about RVM. The Ruby Version Manager has a bunch of features that makes it better than macports for ruby and gem installation. Read about it here. Getting ruby 1.9.1 and nginx &#8230; <a href="http://matthew.mceachen.us/blog/installing-phusion-passenger-on-ruby-1-9-1-nginx-ubuntu-10-04-861.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/installing-phusion-passenger-on-ruby-1-9-1-nginx-ubuntu-10-04-861.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick MacPorts Installation of Ruby on Rails</title>
		<link>http://matthew.mceachen.us/blog/quick-macports-installation-of-ruby-on-rails-270.html</link>
		<comments>http://matthew.mceachen.us/blog/quick-macports-installation-of-ruby-on-rails-270.html#comments</comments>
		<pubDate>Sat, 24 Jan 2009 09:17:15 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Technical HOWTOs]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://matthew.mceachen.us/blog/?p=270</guid>
		<description><![CDATA[October 2010 update: I wrote this a while back, before I knew about RVM. The Ruby Version Manager has a bunch of features that makes it better than macports for ruby and gem installation. Read about it here. I finally &#8230; <a href="http://matthew.mceachen.us/blog/quick-macports-installation-of-ruby-on-rails-270.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://matthew.mceachen.us/blog/quick-macports-installation-of-ruby-on-rails-270.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

