<?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>jonathan ng &#187; ruby on rails</title>
	<atom:link href="http://jonathanng.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanng.com</link>
	<description>code + culture</description>
	<lastBuildDate>Tue, 31 Jan 2012 02:28:38 +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>uninitialized constant MysqlCompat::MysqlRes&#8230;getting Snow Leopard, Rails, and MySQL to play nicely</title>
		<link>http://jonathanng.com/ruby-on-rails/uninitialized-constant-mysqlcompatmysqlres-getting-snow-leopard-rails-and-mysql-to-play-nicely-2/</link>
		<comments>http://jonathanng.com/ruby-on-rails/uninitialized-constant-mysqlcompatmysqlres-getting-snow-leopard-rails-and-mysql-to-play-nicely-2/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 06:32:42 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[snow leopard mysql gem homebrew]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=763</guid>
		<description><![CDATA[You&#8217;ve probably done it&#8230;set up your machine, updated Rails, installed MySQL, then attempted to start your server. You&#8217;re cruising&#8230;then blam! &#160;uninitialized constant MysqlCompat::MysqlRes Then you&#8217;ve probably hit Google a few times&#8230;tried specifying  x86_64 ARCHFLAGS, installing and reinstalling MySQL and the MySQL gem, and even trying the MySQL 2.7 gem. No dice. You and I both. Well, [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/uninitialized-constant-mysqlcompatmysqlres-getting-snow-leopard-rails-and-mysql-to-play-nicely-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using regular expressions? The Devil is in the details.</title>
		<link>http://jonathanng.com/ruby-on-rails/using-regular-expressions-the-devil-is-in-the-details/</link>
		<comments>http://jonathanng.com/ruby-on-rails/using-regular-expressions-the-devil-is-in-the-details/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 08:39:39 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=720</guid>
		<description><![CDATA[Recently, I ran into a little roadblock as I&#8217;ve been cleaning up some bugs for one of my applications. I rely heavily on cross pollination of data between sites to drive traffic across my network. In this particular situation, a simple collection of linked image thumbnails accomplishes this task. One of the helper methods that [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/using-regular-expressions-the-devil-is-in-the-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting around ext3 inode limitations using MD5 file paths and Paperclip interpolations</title>
		<link>http://jonathanng.com/ruby-on-rails/getting-around-ext3-inode-limitations-using-md5-file-paths-and-paperclip-interpolations/</link>
		<comments>http://jonathanng.com/ruby-on-rails/getting-around-ext3-inode-limitations-using-md5-file-paths-and-paperclip-interpolations/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 08:55:06 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[hash path]]></category>
		<category><![CDATA[md5 file path]]></category>
		<category><![CDATA[paperclip]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=666</guid>
		<description><![CDATA[I really wished somebody had suggested I use a hashed file paths when I was planning out my application. Let me be that guy. Anybody building an application that allows file uploads should seriously consider use hashed file paths. Why? Everybody dreams of their app becoming the next big thing, but what happens when that [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/getting-around-ext3-inode-limitations-using-md5-file-paths-and-paperclip-interpolations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Rails collection partial with a counter</title>
		<link>http://jonathanng.com/ruby-on-rails/using-a-rails-collection-partial-with-a-counter/</link>
		<comments>http://jonathanng.com/ruby-on-rails/using-a-rails-collection-partial-with-a-counter/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 02:48:15 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[partials]]></category>
		<category><![CDATA[render collection]]></category>
		<category><![CDATA[render partial collection]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=295</guid>
		<description><![CDATA[I was reworking an application today and noticed there was a portion of the code that was rendering a counter. # what I saw &#60;% @wheels.each_with_index do &#124;wheel,count&#124; %&#62; &#160; &#60;%= render :partial =&#62; &#34;wheel&#34;, :locals =&#62; &#123; :wheel =&#62; wheel, :count =&#62; count&#125; %&#62; &#60;% end %&#62; # you might also be doing &#60;% [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/using-a-rails-collection-partial-with-a-counter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Multiple database connections with Rails</title>
		<link>http://jonathanng.com/ruby-on-rails/multiple-database-connections-with-rails/</link>
		<comments>http://jonathanng.com/ruby-on-rails/multiple-database-connections-with-rails/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 20:22:47 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[legacy databases]]></category>
		<category><![CDATA[multiple databases]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=283</guid>
		<description><![CDATA[Recently a client requsted that I add a new admnistration panel to an existing Rails application. I thought to myself, &#8220;That sounds simple enough?&#8221;; welll, things are never as simple. In addition to this control panel, they wanted to use an existing MySQL database and its contents which, of course, did not follow the Rails [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/multiple-database-connections-with-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Watermarking images paperclip&#8217;s post-processor</title>
		<link>http://jonathanng.com/ruby-on-rails/watermarking-images-paperclips-post-processor/</link>
		<comments>http://jonathanng.com/ruby-on-rails/watermarking-images-paperclips-post-processor/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:44:02 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[watermark]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=258</guid>
		<description><![CDATA[For those of you who wanted to use thoughtbot&#8217;s paperclip plugin to manage image uploads but were having trouble watermarking said images, behold! http://github.com/ng/paperclip-watermarking-app/tree/master]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/watermarking-images-paperclips-post-processor/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Dynamically set a domain for a Rails asset host</title>
		<link>http://jonathanng.com/ruby-on-rails/dynamically-set-a-domain-for-a-rails-asset-host/</link>
		<comments>http://jonathanng.com/ruby-on-rails/dynamically-set-a-domain-for-a-rails-asset-host/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 10:07:51 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[asset host]]></category>
		<category><![CDATA[asset hosts]]></category>
		<category><![CDATA[asset_host]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=254</guid>
		<description><![CDATA[I&#8217;ve been wanting to implement an asset host for my Rails app, looking over the API I saw that Rails&#8217; asset_host only supported a single domain. I&#8217;m running multiple domains off one Rails app, so this would have been a problem. After a little research, I came up with a solution that would work for [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/dynamically-set-a-domain-for-a-rails-asset-host/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Simple non-model check box properties</title>
		<link>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/</link>
		<comments>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 11:11:01 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[check boxes]]></category>
		<category><![CDATA[check_box_tag]]></category>
		<category><![CDATA[non-model check box]]></category>
		<category><![CDATA[non-model properties]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=252</guid>
		<description><![CDATA[Need to pass a property that isn&#8217;t associated with a model? I did. It took me a few minutes, but the solution is codetty easy. Instead of passing the instance variable your form is using, try this. &#60;% form_for &#91;:admin, @post&#93;&#125; do &#124;f&#124; %&#62; &#160; &#60;%= f.error_messages %&#62; &#160; &#160; &#60;p&#62; &#160; &#160; &#60;%= f.label [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Paperclip deletes images with empty file fields update with rails 2.3</title>
		<link>http://jonathanng.com/ruby-on-rails/paperclip-deletes-images-with-empty-file-fields-update-with-rails-23/</link>
		<comments>http://jonathanng.com/ruby-on-rails/paperclip-deletes-images-with-empty-file-fields-update-with-rails-23/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 09:30:44 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[rails 2.3]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=249</guid>
		<description><![CDATA[Bahhh! When you update a model that contains an empty file field in Rails 2.3 the attachment is deleted. It looks like empty file fields get passed as nil and then Paperclip gets angry. Processing Admin::PostsController#update (for 127.0.0.1 at 2009-03-05 01:21:08) [PUT] &#160; Parameters: &#123;&#34;commit&#34;=&#62;&#34;Update&#34;, &#34;post&#34;=&#62;&#123;&#34;title&#34;=&#62;&#34;Post Title&#34;, &#34;image&#34;=&#62;nil&#125;, &#34;id&#34;=&#62;&#34;124&#34;&#125; There are two quick monkey patches [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/paperclip-deletes-images-with-empty-file-fields-update-with-rails-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watermark your images in Rails</title>
		<link>http://jonathanng.com/ruby-on-rails/watermark-your-images-in-rails/</link>
		<comments>http://jonathanng.com/ruby-on-rails/watermark-your-images-in-rails/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 22:39:03 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://jonathanng.com/?p=245</guid>
		<description><![CDATA[I&#8217;ve been working on a project that requires me to watermark all my images. Here&#8217;s a script I put together using rmagick. I plan on releasing a skeleton application that will accept uploaded files and watermark them. Ideally, I&#8217;d like to use paperclip to handle uploading, and write a processor subclass to handle watermarking&#8230;unfortunately I&#8217;m [...]]]></description>
		<wfw:commentRss>http://jonathanng.com/ruby-on-rails/watermark-your-images-in-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

