<?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>Mandarin Soda &#187; Rails</title>
	<atom:link href="http://mandarinsoda.com/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://mandarinsoda.com</link>
	<description>Random Musings, Sometimes Programming.</description>
	<lastBuildDate>Fri, 12 Jun 2009 02:28:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Lightweight Ruby Web Services</title>
		<link>http://mandarinsoda.com/2008/12/09/lightweight-ruby-web-services/</link>
		<comments>http://mandarinsoda.com/2008/12/09/lightweight-ruby-web-services/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 02:04:43 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Book Reviews]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[miscellaneous]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=220</guid>
		<description><![CDATA[The recent Oreilly book Enterprise Rails has a few chapters on SOA and the entire time I was reading those chapters I kept thinking to myself that Rails is sorta overkill for most services implementations, unless you plan on bundling APIs and applications together. I was going to write something about translating the services discussed [...]]]></description>
			<content:encoded><![CDATA[<p>The recent Oreilly book <a href="http://oreilly.com/catalog/9780596515201/">Enterprise Rails</a> has a few chapters on SOA and the entire time I was reading those chapters I kept thinking to myself that Rails is sorta overkill for most services implementations, unless you plan on bundling APIs and applications together.  I was going to write something about translating the services discussed in that book to <a href="http://merbivore.com/">Merb</a> micro apps or something similar, but a few recent posts beat me to the punch.  Enjoy:</p>
<p><a href="http://www.slideshare.net/adamwiggins/lightweight-webservices-with-sinatra-and-restclient-presentation?type=powerpoint ">Web Services With Sinatra</a>.</p>
<p><a href="http://advent2008.hackruby.com/past/2008/12/6/soa_with_merb/">SOA with Merb?</a>.</p>
<p>Throw in a little <a href="http://railstips.org/2008/11/17/happymapper-making-xml-fun-again">Happy Mapper</a> and you sort of have the equivalent of Restlet/Jersey and Castor/Jibx in the Java world.  Enterprise indeed.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F12%2F09%2Flightweight-ruby-web-services%2F&amp;title=Lightweight+Ruby+Web+Services" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/12/09/lightweight-ruby-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zeep SMS Gem Configuration for Rails</title>
		<link>http://mandarinsoda.com/2008/09/20/zeep-sms-gem-configuration-for-rails/</link>
		<comments>http://mandarinsoda.com/2008/09/20/zeep-sms-gem-configuration-for-rails/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 16:31:07 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=167</guid>
		<description><![CDATA[For whatever reason, I can rarely remember the myriad syntax for managing gem dependencies in Rails. I&#8217;ve visited this page quite a bit during various projects. When trying to install the zeep messaging gem recently, sure enough I struggled a bit with getting the syntax correct. Anyway, without further ado, here is what worked: config.gem [...]]]></description>
			<content:encoded><![CDATA[<p>For whatever reason, I can rarely remember the myriad syntax for managing gem dependencies in Rails.  I&#8217;ve visited <a href="http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies">this page</a> quite a bit during various projects.  </p>
<p>When trying to install the <a href="http://code.google.com/p/zeep-messaging/downloads/detail?name=zeep-messaging-0.1.5.gem&#038;can=2&#038;q=">zeep messaging gem</a> recently, sure enough I struggled a bit with getting the syntax correct.  </p>
<p>Anyway, without further ado, here is what worked:<br />
<code>config.gem "zeep-messaging", :lib => "zeep/messaging", :version => "0.1.5"</code></p>
<p>Kinda nice sending SMS messages from the console, I have to admit.  </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F20%2Fzeep-sms-gem-configuration-for-rails%2F&amp;title=Zeep+SMS+Gem+Configuration+for+Rails" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/20/zeep-sms-gem-configuration-for-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Radiant CMS and Phusion Passenger on Slicehost</title>
		<link>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/</link>
		<comments>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 21:21:10 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[miscellaneous]]></category>
		<category><![CDATA[Radiant]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=160</guid>
		<description><![CDATA[In my previous post, I wrote about quickly setting an Ubuntu Hardy slice up with Radiant and the latest Phusion tools (mod_rails and Ruby Enterprise) and alluded to some setting up logging and monitoring as next steps. As monitoring and logging are fascinating subjects, I figured I&#8217;d follow up with a few sentences about what [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post, I wrote about quickly setting an Ubuntu Hardy slice up with Radiant and the latest Phusion tools (mod_rails and Ruby Enterprise) and alluded to some setting up logging and monitoring as next steps.  As monitoring and logging are fascinating subjects, I figured I&#8217;d follow up with a few sentences about what I configured.</p>
<p>Apache will log to its own log files, as well as <a href="http://httpd.apache.org/docs/1.3/logs.html#rotation">handle log rotation</a>, so nothing much to write about there.  However, as a good practice, you&#8217;ll likely want to rotate your Radiant logs.  And for that, you&#8217;ll want logrotate.  </p>
<p>Logrotate gets its configuration information from /etc/logrotate.conf, so one just needs to open it up and tell it to look at the Radiant logs and rotate them like so:</p>
<pre><code>
# Rotate Rails application logs
/path/to/radiant/shared/log/*.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
copytruncate
}
</pre>
<p></code></p>
<p>This will rotate 7 days worth of logs, compress older logs and start a new log file.   And it will do it daily. Simple.  </p>
<p>Monitoring is a bit more involved, but God makes it fairly easy, and its all in Ruby.  According to <a href="https://boxpanel.blueboxgrp.com/public/the_vault/index.php/Mod_Rails_Tips">this helpful site</a> mod_rails monitors its own processes, which leaves us to Monitor Apache, MySQL and any other processes running around.  The <a href="http://god.rubyforge.org/">God site</a> has very good documentation, so I suggest you head over there if you want detailed descriptions of everything it can do.  For the sake of this post, I'll just lead folks to simple Apache and MySQL configurations.</p>
<p>After installing God <code>sudo gem install god --no-ri --no-rdoc</code>, setup a conf.god somewhere sensible and take a look at the posts below, as it probably doesn't make sense for me to reiterate what others have already admirably accomplished:<br />
<a href="http://rubypond.com/articles/2007/12/28/touched-by-god-process-monitoring/">Monitoring MySQL and setting up notifications</a>.<br />
<a href="http://blog.blenderbox.com/2008/03/11/monitoring-apache-with-god/">Monitoring Apache</a>.</p>
<p>Now I just need to figure out what will monitor God.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Radiant CMS and Phusion Passenger + Ruby Enterprise on Slicehost</title>
		<link>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/</link>
		<comments>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 21:50:20 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Slicehost]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=136</guid>
		<description><![CDATA[I don&#8217;t really bother writing anything about Slicehost installs anymore, as Pickled Onion over at the slicehost articles site writes excellent, up-to-date articles on the most relevant deployment and configuration topics. However, I just did a Radiant install, complete with Phusion Passenger (mod_rails) and Ruby Enterprise on Ubuntu Hardy and found a nice shortcut I [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t really bother writing anything about Slicehost installs anymore, as Pickled Onion over at <a href="http://articles.slicehost.com/">the slicehost articles site</a> writes excellent, up-to-date articles on the most relevant deployment and configuration topics.  However, I just did a Radiant install, complete with Phusion Passenger (mod_rails) and Ruby Enterprise on Ubuntu Hardy and found a nice shortcut I thought I would share. </p>
<p>The shortcut in question is a fork of the <a href="http://mitchellhashimoto.com/ruby-enterprise-phusion-passenger-on-slicehost-screencast/">Sprinkle gem</a> by <a href="http://mitchellhashimoto.com/">Mitchell Hashimoto</a>.  Check out his screencast for the details and read the comments as well. I just had to change the Phusion Passenger versions in the scripts, modify the scripts to install MySQL and Radiant (<code>gem install radiant</code>) and I was good to go. </p>
<p>If you&#8217;ve never setup a Slice before, I don&#8217;t usually recommend using ready-made scripts, as it&#8217;s good to go through the steps &#8211; particularly as things do tend to break.  I had problems installing the MySQL gem from Capistrano for some reason I didn&#8217;t bother to dwell on for too long. Otherwise, I found the Sprinkle gem to be very helpful.  </p>
<p>Now onto monitoring with God, some logrotate and the other usual suspects. </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Acts_as_Chimp Updates</title>
		<link>http://mandarinsoda.com/2008/06/10/acts_as_chimp-updates/</link>
		<comments>http://mandarinsoda.com/2008/06/10/acts_as_chimp-updates/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 01:38:11 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[MailChimp]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=103</guid>
		<description><![CDATA[Fixed a sorta obvious bug and added a new feature to acts_as_chimp today. You can now specify a list of merge tags in your acts_as_chimp model declaration like so: [sourcecode language='ruby'] acts_as_chimp :mailing_list_id => 'your_list_id', :mail_merge => {"EMAIL" => :email, "FNAME" => :first_name, "LNAME" => :last_name } [/sourcecode] The plugin will read the method values [...]]]></description>
			<content:encoded><![CDATA[<p>Fixed a sorta obvious bug and added a new feature to acts_as_chimp today.  You can now specify a list of merge tags in your acts_as_chimp model declaration like so:<br />
<code>[sourcecode language='ruby']<br />
acts_as_chimp :mailing_list_id => 'your_list_id', :mail_merge => {"EMAIL" => :email, "FNAME" => :first_name, "LNAME" => :last_name }<br />
[/sourcecode]</code></p>
<p>The plugin will read the method values corresponding to the symbols above when posting to MailChimp.</p>
<p>As an aside, the kind folks at MailChimp recently added acts_as_chimp to<br />
<a href="http://www.mailchimp.com/plugins/">their plugin page</a>.   </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F10%2Facts_as_chimp-updates%2F&amp;title=Acts_as_Chimp+Updates" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/06/10/acts_as_chimp-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Braintree and ActiveResource</title>
		<link>http://mandarinsoda.com/2008/06/04/braintree-and-activeresource/</link>
		<comments>http://mandarinsoda.com/2008/06/04/braintree-and-activeresource/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 01:26:02 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[braintree]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=101</guid>
		<description><![CDATA[Been playing around with accessing Braintree transactions from ActiveResource, using the Query API in particular. Thanks to the folks over at QuarkRuby, getting started was quite easy, so I figured I might as well post what I have for the uninitiated. pastie To get started using the API, use commands like the following: t = [...]]]></description>
			<content:encoded><![CDATA[<p>Been playing around with accessing <a href="http://www.braintreepaymentsolutions.com/">Braintree transactions</a> from ActiveResource, using the Query API in particular.  Thanks to the folks over at <a href="http://www.quarkruby.com/2008/1/15/activeresource-and-youtube">QuarkRuby</a>, getting started was quite easy, so I figured I might as well post what I have for the uninitiated.</p>
<p><a href="http://www.pastie.org/220814">pastie</a></p>
<p>To get started using the API, use commands like the following:</p>
<p><code><br />
t = Braintree.find(:all, :params =&gt; {:username =&gt; 'btdemo', :password =&gt; 'btdemo123', :last_name =&gt; 'Lin'})<br />
</code></p>
<p><code><br />
t.each do |transaction|<br />
transaction.gimme_my_money<br />
end<br />
</code></p>
<p>Pretty straightforward stuff if you want to incorporate this into your Rails app, either for integration test verification or some admin pages.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F04%2Fbraintree-and-activeresource%2F&amp;title=Braintree+and+ActiveResource" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/06/04/braintree-and-activeresource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recurring billing with Braintree and ActiveMerchant</title>
		<link>http://mandarinsoda.com/2008/06/02/recurring-billing-with-braintree-and-activemerchant/</link>
		<comments>http://mandarinsoda.com/2008/06/02/recurring-billing-with-braintree-and-activemerchant/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 01:26:46 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[ActiveMerchant]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=99</guid>
		<description><![CDATA[If you&#8217;re using ActiveMerchant and want to setup recurring billing support for Braintree, you should be able to just modify the post parameters being sent across to include your recurring plan name in the following method in the Braintree gateway: Braintree pastie If you want to know more about ActiveMerchant, check out the Peepcode PDF. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using <a href="http://github.com/Shopify/active_merchant/tree/master">ActiveMerchant</a> and want to setup recurring billing support for <a href="http://developer.getbraintree.com/">Braintree</a>, you should be able to just modify the post parameters being sent across to include your recurring plan name in the following method in the Braintree gateway:</p>
<p><a href="http://www.pastie.org/220818">Braintree pastie</a></p>
<p>If you want to know more about ActiveMerchant, check out the <a href="http://peepcode.com/products/activemerchant-pdf">Peepcode PDF</a>.  Should prove helpful.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F06%2F02%2Frecurring-billing-with-braintree-and-activemerchant%2F&amp;title=Recurring+billing+with+Braintree+and+ActiveMerchant" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/06/02/recurring-billing-with-braintree-and-activemerchant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favorite New Gap.com Feature</title>
		<link>http://mandarinsoda.com/2008/05/25/favorite-new-gapcom-feature/</link>
		<comments>http://mandarinsoda.com/2008/05/25/favorite-new-gapcom-feature/#comments</comments>
		<pubDate>Sun, 25 May 2008 22:59:14 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=92</guid>
		<description><![CDATA[Gap recently redesigned their sites to support a single basket across all brands. Looks like every site is using a hidden iframe to register events that observe Prototype posts to the cart DOM element in the upper right. Probably some funky session stuff going on as well. Here&#8217;s my favorite feature: &#8220;Including the ability to [...]]]></description>
			<content:encoded><![CDATA[<p>Gap recently redesigned their sites to support a single basket across all brands.  Looks like every site is using a hidden iframe to register events that observe Prototype posts to the cart DOM element in the upper right.  Probably some funky session stuff going on as well.  Here&#8217;s my favorite feature:</p>
<p><a href='http://mandarinsoda.com/wp-content/uploads/2008/05/picture-4.png'><img src="http://mandarinsoda.com/wp-content/uploads/2008/05/picture-4.png" alt="gap.com obtrusive javascript" title="gap.com" width="500" height="130" class="alignnone size-full wp-image-93" /></a></p>
<p>&#8220;Including the ability to purchase&#8221;.  Hilarious. Nobodies perfect I guess.  </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F25%2Ffavorite-new-gapcom-feature%2F&amp;title=Favorite+New+Gap.com+Feature" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/05/25/favorite-new-gapcom-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble with acts_as_taggable_on_steroids</title>
		<link>http://mandarinsoda.com/2008/04/26/acts_as_taggable_on_steroids-tag_counts-instance-method/</link>
		<comments>http://mandarinsoda.com/2008/04/26/acts_as_taggable_on_steroids-tag_counts-instance-method/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 23:13:37 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=89</guid>
		<description><![CDATA[The tag_counts instance method appears broken. I don&#8217;t have time to submit a patch right now, so I figured I&#8217;d write a quick post for others running into this issue. What I&#8217;m seeing is that if you try to access the tag_counts instance method (ie: @post.tag_counts), you&#8217;ll see a good times SQL exception much like [...]]]></description>
			<content:encoded><![CDATA[<p>The tag_counts instance method appears broken. I don&#8217;t have time to submit a patch right now, so I figured I&#8217;d write a quick post for others running into this issue.  What I&#8217;m seeing is that if you try to access the tag_counts instance method (ie: @post.tag_counts), you&#8217;ll see a good times SQL exception much like the following:<br />
<code>(SQLite3::SQLException: near ")": syntax error: SELECT tags.id, tags.name, COUNT(*) AS count FROM "tags"  INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (() AND taggings.taggable_type = 'Post')  GROUP BY tags.id, tags.name HAVING COUNT(*) > 0):<br />
</code>, as the conditions builder doesn&#8217;t seem to take the model instance id into account when building the query.  </p>
<p>The quick and dirty is to roll your own and add it to the model in question, and even this can probably be improved:<br />
<code>TAG_COUNT_SQL = "SELECT tags.id, tags.name, COUNT(*) AS count FROM tags INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE ((posts.id = ?) AND taggings.taggable_type = 'Post')  GROUP BY tags.id, tags.name HAVING COUNT(*) > 0 "</code></p>
<p>I&#8217;ve been running into enough plugin issues recently, that I&#8217;m definitely moving much closer to the always roll your own ideology as I use Rails more frequently&#8230;but, it does depend upon the use case the plugin is trying to solve.  Some plugins are eminently malleable (as opposed to monkey patchable, and there is a difference), and thats a great feature. </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F26%2Facts_as_taggable_on_steroids-tag_counts-instance-method%2F&amp;title=Trouble+with+acts_as_taggable_on_steroids" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/04/26/acts_as_taggable_on_steroids-tag_counts-instance-method/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rails Plugin for MailChimp</title>
		<link>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/</link>
		<comments>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 00:55:15 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=86</guid>
		<description><![CDATA[A plugin that beats the monkey metaphors to death: script/plugin install git://github.com/matthewjcarlson/acts_as_chimp . Let me know if it does or doesn&#8217;t work. It&#8217;s less a library then an implementation of a use case I&#8217;ve encountered a few times recently. As such, while plugins are falling out of favor a bit, I felt like a plugin [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mailchimp.com/api/"><img src='http://www.mailchimp.com/img/logo_mailchimp.gif' alt='MailChimp' class='alignnone' /></a></p>
<p>A plugin that beats the monkey metaphors to death:<br />
<code> script/plugin install git://github.com/matthewjcarlson/acts_as_chimp </code>.</p>
<p>Let me know if it does or doesn&#8217;t work.  It&#8217;s less a library then an implementation of a use case I&#8217;ve encountered a few times recently.  As such, while <a href="http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies">plugins are falling out of favor a bit</a>, I felt like a plugin made sense for what I&#8217;m doing here. If you&#8217;d prefer a gem or more detailed MailChimp interaction, there&#8217;s an excellent MailChimp gem available <a href="http://rubyforge.org/projects/ruby-mailchimp/">here</a> or you can drop me a comment as well.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
