<?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>My geek blog - Brian McQuay &#187; ruby</title>
	<atom:link href="http://www.brianmcquay.com/tag/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brianmcquay.com</link>
	<description>My Ruby on Rails experience, web development tips including SEO, and contributions to open source projects</description>
	<lastBuildDate>Thu, 05 Jan 2012 19:38:41 +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>Ditching Mongrel for mod_rails</title>
		<link>http://www.brianmcquay.com/ditching-mongrel-for-mod_rails/135</link>
		<comments>http://www.brianmcquay.com/ditching-mongrel-for-mod_rails/135#comments</comments>
		<pubDate>Sun, 25 May 2008 15:29:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scalability]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/ditching-mongrel-for-mod_rails/135</guid>
		<description><![CDATA[I build a lot of Rails apps on a regular basis and each one I add to my server takes another bite out of my limited resources. The way I&#8217;ve traditionally setup a new Rails app was using a Mongrel cluster. I found it to be a lot more reliable and faster than the fcgi [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/ditching-mongrel-for-mod_rails/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reducing Rails model callbacks</title>
		<link>http://www.brianmcquay.com/reducing-rails-model-callbacks/132</link>
		<comments>http://www.brianmcquay.com/reducing-rails-model-callbacks/132#comments</comments>
		<pubDate>Tue, 22 Apr 2008 05:20:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails optimization]]></category>
		<category><![CDATA[rails-plugin]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/reducing-rails-model-callbacks/132</guid>
		<description><![CDATA[I&#8217;ve been working with a client to optimize parts of their Rails application. The problem is that a method in the app does some simple updating of a few model objects but because the model has so many relations it goes through a ton of unnecessary callbacks. There are issues related to data concurrency which [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/reducing-rails-model-callbacks/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Base on Rails</title>
		<link>http://www.brianmcquay.com/google-base-on-rails/119</link>
		<comments>http://www.brianmcquay.com/google-base-on-rails/119#comments</comments>
		<pubDate>Wed, 19 Dec 2007 10:41:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[google-base]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails-plugin]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/google-base-on-rails/119</guid>
		<description><![CDATA[I was surprised to come up empty handed when searching for a Google Base Rails plugin. I wanted something that would allow me to easily create a feed into Google Base using their API. I didn&#8217;t find anything so I took the quick and short term solution and created my own Google Base xml feed. [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/google-base-on-rails/119/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails form select integer drop-down helper method</title>
		<link>http://www.brianmcquay.com/rails-form-select-integer-drop-down-helper-method/111</link>
		<comments>http://www.brianmcquay.com/rails-form-select-integer-drop-down-helper-method/111#comments</comments>
		<pubDate>Sat, 13 Oct 2007 01:37:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[drop_downs]]></category>
		<category><![CDATA[form_select]]></category>
		<category><![CDATA[helper_function]]></category>
		<category><![CDATA[integers]]></category>
		<category><![CDATA[integer_options]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/rails-form-select-integer-drop-down-helper-method/111</guid>
		<description><![CDATA[I&#8217;ve often come across situations while developing Rails apps where I just want a simple integer drop-down box. The default Rails helpers for selects and its options aren&#8217;t really geared for something simple like that. I don&#8217;t want to have to create a collection of integers and pass them into blocks or any other ridiculous [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/rails-form-select-integer-drop-down-helper-method/111/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>one-to-many associations made easy with ActiveScaffold</title>
		<link>http://www.brianmcquay.com/one-to-many-associations-made-easy-with-activescaffold/108</link>
		<comments>http://www.brianmcquay.com/one-to-many-associations-made-easy-with-activescaffold/108#comments</comments>
		<pubDate>Fri, 07 Sep 2007 22:53:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[activescaffold]]></category>
		<category><![CDATA[associations]]></category>
		<category><![CDATA[crud]]></category>
		<category><![CDATA[learning_curve]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scaffold]]></category>
		<category><![CDATA[scaffolding]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/one-to-many-associations-made-easy-with-activescaffold/108</guid>
		<description><![CDATA[I just dove in and started using ActiveScaffold for a new project. There was a little learning curve since I was doing that along with using RESTful Rails. I just started with a simple 1-many association. I setup my 2 models as usual with has_many :ads and belongs_to :affiliate. Then I created two controllers that [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/one-to-many-associations-made-easy-with-activescaffold/108/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>class_table_inheritance with acts_as_taggable</title>
		<link>http://www.brianmcquay.com/class_table_inheritance-with-acts_as_taggable/106</link>
		<comments>http://www.brianmcquay.com/class_table_inheritance-with-acts_as_taggable/106#comments</comments>
		<pubDate>Sat, 25 Aug 2007 01:59:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[acts_as_taggable]]></category>
		<category><![CDATA[class_table_inheritance]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby_on_rails]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/class_table_inheritance-with-acts_as_taggable/106</guid>
		<description><![CDATA[If I have: [source language=":ruby"] class Product &#60; ActiveRecord::Base acts_as_taggable end [/source] [source language=":ruby"] class Subproduct &#60; Product class_table_inheritance end [/source] [source language=":ruby"] def find_tagged_with!(list) find_by_sql([ &#34;SELECT #{table_name}.* FROM #{table_name} &#34; + &#34;WHERE #{table_name}.#{primary_key} in (&#34; + &#34; SELECT taggable_id FROM taggings, tags &#34; + &#34; WHERE tags.id=taggings.tag_id &#34; + &#34; AND taggings.taggable_type = ? [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/class_table_inheritance-with-acts_as_taggable/106/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class table inheritance in Ruby on Rails</title>
		<link>http://www.brianmcquay.com/class-table-inheritance-in-ruby-on-rails/101</link>
		<comments>http://www.brianmcquay.com/class-table-inheritance-in-ruby-on-rails/101#comments</comments>
		<pubDate>Fri, 03 Aug 2007 22:53:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[class_table_inheritance]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[inheritance]]></category>
		<category><![CDATA[rails_plugin]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby_on_rails]]></category>
		<category><![CDATA[spaghetti_noodles]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/class-table-inheritance-in-ruby-on-rails/101</guid>
		<description><![CDATA[In my previous post I wrote about trying to get class table inheritance working in Rails. I passed by the hack and went with the plugin which ended up not really working right. I revisited the class table inheritance hack and actually got it working. I pretty much just dumped that code into a plugin [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/class-table-inheritance-in-ruby-on-rails/101/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>nil.[] error when using Rails migrations</title>
		<link>http://www.brianmcquay.com/nil-error-when-using-rails-migrations/99</link>
		<comments>http://www.brianmcquay.com/nil-error-when-using-rails-migrations/99#comments</comments>
		<pubDate>Thu, 02 Aug 2007 23:51:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[database_table]]></category>
		<category><![CDATA[data_type]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby_on_rails]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/nil-error-when-using-rails-migrations/99</guid>
		<description><![CDATA[I just had a little trouble with Rails migrations. I was trying to add a column to a database table in the migration using: [source language=":ruby"]add_column :condos, :product_id, :int, :null =&#62; false, :limit =&#62; &#8217;11&#8242;[/source] The syntax seems ok at first glance but it resulted in the following error: [source language=":ruby"] &#8211; add_column(&#34;condos&#34;, &#34;product_id&#34;, &#34;int&#34;) [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/nil-error-when-using-rails-migrations/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing CSV files sent via form post in Ruby on Rails</title>
		<link>http://www.brianmcquay.com/parsing-csv-files-sent-via-form-post-in-ruby-on-rails/90</link>
		<comments>http://www.brianmcquay.com/parsing-csv-files-sent-via-form-post-in-ruby-on-rails/90#comments</comments>
		<pubDate>Thu, 31 May 2007 20:08:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[csv_file]]></category>
		<category><![CDATA[file_csv]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[parsing_csv_files]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby_on_rails]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/parsing-csv-files-sent-via-form-post-in-ruby-on-rails/90</guid>
		<description><![CDATA[I&#8217;m not sure why it took me a while to figure this out but it did. The Ruby CSV documentation is really weak and really only explains how to read from a file. I googled around and couldn&#8217;t find anyone else talking about how to parse a CSV file sent via a form post (StringIO). [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/parsing-csv-files-sent-via-form-post-in-ruby-on-rails/90/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Monitary precision of a Ruby float</title>
		<link>http://www.brianmcquay.com/monitary-precision-of-a-ruby-float/86</link>
		<comments>http://www.brianmcquay.com/monitary-precision-of-a-ruby-float/86#comments</comments>
		<pubDate>Wed, 16 May 2007 06:12:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[decimals]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[helper_function]]></category>
		<category><![CDATA[monetize]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby_on_rails]]></category>
		<category><![CDATA[scale_number]]></category>

		<guid isPermaLink="false">http://www.brianmcquay.com/monitary-precision-of-a-ruby-float/86</guid>
		<description><![CDATA[I looked around and couldn&#8217;t seem to find a way to easily change the precision of a Ruby Float object to 2 decimals so I can use it as a dollar amount. I feel bad about posting this because I borrowed some of the code from another site but lost the link to it. Instead [...]]]></description>
		<wfw:commentRss>http://www.brianmcquay.com/monitary-precision-of-a-ruby-float/86/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

