<?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>betweenGo &#187; Ruby on Rails</title>
	<atom:link href="http://betweengo.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Sun, 07 Mar 2010 13:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Helpers with Email Templates</title>
		<link>http://betweengo.com/2008/10/14/using-helpers-with-email-templates/</link>
		<comments>http://betweengo.com/2008/10/14/using-helpers-with-email-templates/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 18:30:17 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=354</guid>
		<description><![CDATA[To use helpers with email templates specify in the model the helpers you want to use.
class FooMailer &#60; ActionMailer::Base

  helper :Foo, :Application


Related posts:Gmail, SPF, and Broken Email Forwarding?
Configuring ATG to Send Email via Comcast SMTP
ATG Consulting Interview



Related posts:<ol><li><a href='http://betweengo.com/2008/07/11/gmail-spf-and-broken-email-forwarding/' rel='bookmark' title='Permanent Link: Gmail, SPF, and Broken Email Forwarding?'>Gmail, SPF, and Broken Email Forwarding?</a></li>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Permanent Link: Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2008/03/10/atg-consulting-interview/' rel='bookmark' title='Permanent Link: ATG Consulting Interview'>ATG Consulting Interview</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To use helpers with email templates specify in the model the helpers you want to use.</p>
<pre>class FooMailer &lt; ActionMailer::Base

  helper :Foo, :Application</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F10%2F14%2Fusing-helpers-with-email-templates%2F&amp;linkname=Using%20Helpers%20with%20Email%20Templates"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/07/11/gmail-spf-and-broken-email-forwarding/' rel='bookmark' title='Permanent Link: Gmail, SPF, and Broken Email Forwarding?'>Gmail, SPF, and Broken Email Forwarding?</a></li>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Permanent Link: Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2008/03/10/atg-consulting-interview/' rel='bookmark' title='Permanent Link: ATG Consulting Interview'>ATG Consulting Interview</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/10/14/using-helpers-with-email-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting Text</title>
		<link>http://betweengo.com/2008/10/14/formatting-text/</link>
		<comments>http://betweengo.com/2008/10/14/formatting-text/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 18:14:08 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=352</guid>
		<description><![CDATA[For text fields one typically wants to allow some HTML tags, add support for link breaks and even auto link URL&#8217;s and emails.
This method which I got from this forum thread, Adding a line break &#8230; safely, does all of this and is a must add to my application_helper.rb.
def format_content(content)
  # allow only tags [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/07/29/mysterious-dspelinclude-problem-with-flush/' rel='bookmark' title='Permanent Link: Mysterious dspel:include problem with flush=true'>Mysterious dspel:include problem with flush=true</a></li>
<li><a href='http://betweengo.com/2007/07/20/submitting-an-atg-form-using-a-text-link/' rel='bookmark' title='Permanent Link: Submitting an ATG Form Using a Text Link'>Submitting an ATG Form Using a Text Link</a></li>
<li><a href='http://betweengo.com/2008/03/13/you-used-ruby-to-write-what/' rel='bookmark' title='Permanent Link: You Used Ruby to Write WHAT?!'>You Used Ruby to Write WHAT?!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For text fields one typically wants to allow some HTML tags, add support for link breaks and even auto link URL&#8217;s and emails.</p>
<p>This method which I got from this forum thread, <a title="Adding a line break ... safely" href="http://railsforum.com/viewtopic.php?id=14819">Adding a line break &#8230; safely</a>, does all of this and is a must add to my <tt>application_helper.rb</tt>.</p>
<pre>def format_content(content)
  # allow only tags specified in tags options, likewise in attributes
  content = sanitize(content, :tags =&gt; %w(b strong i em img), :attributes =&gt; %w(src))

  # add support for line breaks
  content = simple_format(content)

  # auto link URL's and emails
  content = auto_link(content, :all, :target =&gt; '_blank')

  return content
end</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F10%2F14%2Fformatting-text%2F&amp;linkname=Formatting%20Text"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/07/29/mysterious-dspelinclude-problem-with-flush/' rel='bookmark' title='Permanent Link: Mysterious dspel:include problem with flush=true'>Mysterious dspel:include problem with flush=true</a></li>
<li><a href='http://betweengo.com/2007/07/20/submitting-an-atg-form-using-a-text-link/' rel='bookmark' title='Permanent Link: Submitting an ATG Form Using a Text Link'>Submitting an ATG Form Using a Text Link</a></li>
<li><a href='http://betweengo.com/2008/03/13/you-used-ruby-to-write-what/' rel='bookmark' title='Permanent Link: You Used Ruby to Write WHAT?!'>You Used Ruby to Write WHAT?!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/10/14/formatting-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rake db:migrate hangs</title>
		<link>http://betweengo.com/2008/10/09/rake-dbmigrate-hangs/</link>
		<comments>http://betweengo.com/2008/10/09/rake-dbmigrate-hangs/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 20:14:56 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=346</guid>
		<description><![CDATA[Recently I tried running my RoR applications on Oracle.
I noticed that when I ran rake db:migrate it would hang.  Specifically it would hang during the schema dump phase.
E:\work\sandbox&#62;rake db:migrate --trace -v
(in E:/work/sandbox)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
I realized later that this was [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/04/03/error-in-my_thread_global_end-when-running-rake-dbmigrate/' rel='bookmark' title='Permanent Link: &#8216;Error in my_thread_global_end()&#8217; when running rake db:migrate'>&#8216;Error in my_thread_global_end()&#8217; when running rake db:migrate</a></li>
<li><a href='http://betweengo.com/2005/09/14/locallib-classes-not-loading/' rel='bookmark' title='Permanent Link: locallib classes not loading'>locallib classes not loading</a></li>
<li><a href='http://betweengo.com/2007/06/12/deploying-to-production-notes/' rel='bookmark' title='Permanent Link: Deploying to Production Notes'>Deploying to Production Notes</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently I tried running my <a title="Ruby on Rails and Oracle" href="http://betweengo.com/ruby-on-rails/2008/10/08/ruby-on-rails-and-oracle/">RoR applications on Oracle</a>.</p>
<p>I noticed that when I ran rake db:migrate it would hang.  Specifically it would hang during the schema dump phase.</p>
<pre>E:\work\sandbox&gt;rake db:migrate --trace -v
(in E:/work/sandbox)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump</pre>
<p>I realized later that this was because the schema dump phase is very slow and the database I was using had many other tables from other applications.  When I left it running it finally completed after <em>10</em> minutes.</p>
<p>You can see the <em>slow</em> progress of the schema dump phase by tailing <tt>schema.rb</tt> in the <tt>db</tt> directory.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F10%2F09%2Frake-dbmigrate-hangs%2F&amp;linkname=rake%20db%3Amigrate%20hangs"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/04/03/error-in-my_thread_global_end-when-running-rake-dbmigrate/' rel='bookmark' title='Permanent Link: &#8216;Error in my_thread_global_end()&#8217; when running rake db:migrate'>&#8216;Error in my_thread_global_end()&#8217; when running rake db:migrate</a></li>
<li><a href='http://betweengo.com/2005/09/14/locallib-classes-not-loading/' rel='bookmark' title='Permanent Link: locallib classes not loading'>locallib classes not loading</a></li>
<li><a href='http://betweengo.com/2007/06/12/deploying-to-production-notes/' rel='bookmark' title='Permanent Link: Deploying to Production Notes'>Deploying to Production Notes</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/10/09/rake-dbmigrate-hangs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails and Oracle</title>
		<link>http://betweengo.com/2008/10/08/ruby-on-rails-and-oracle/</link>
		<comments>http://betweengo.com/2008/10/08/ruby-on-rails-and-oracle/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 23:04:18 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=331</guid>
		<description><![CDATA[
Get the Ruby OCI8 driver.  Download the file that ends with &#8220;mswin32.rb&#8221; and install like this:
E:\ruby&#62;ruby ruby-oci8-1.0.3-mswin32.rb
Copy OCI8.rb to e:/ruby/lib/ruby/site_ruby/1.8/DBD/OCI8
Copy oci8.rb to e:/ruby/lib/ruby/site_ruby/1.8
Copy oci8lib.so to e:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
OK?
Enter Yes/No: Yes
Copying OCI8.rb to e:/ruby/lib/ruby/site_ruby/1.8/DBD/OCI8 ... done
Copying oci8.rb to e:/ruby/lib/ruby/site_ruby/1.8 ... done
Copying oci8lib.so to e:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt ... done
OK
You can test the driver by running a query using Ruby.
E:\&#62;ruby -r oci8 [...]


Related posts:<ol><li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
<li><a href='http://betweengo.com/2006/01/10/possible-reason-for-ruby-on-rails-tests-failing/' rel='bookmark' title='Permanent Link: Possible reason for Ruby on Rails tests failing'>Possible reason for Ruby on Rails tests failing</a></li>
<li><a href='http://betweengo.com/2005/10/16/what-is-ruby-on-rails/' rel='bookmark' title='Permanent Link: What Is Ruby on Rails'>What Is Ruby on Rails</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<ol>
<li>Get the <a title="ruby-oci8" href="http://rubyforge.org/projects/ruby-oci8/">Ruby OCI8 driver</a>.  Download the file that ends with &#8220;mswin32.rb&#8221; and install like this:
<pre>E:\ruby&gt;ruby ruby-oci8-1.0.3-mswin32.rb
Copy OCI8.rb to e:/ruby/lib/ruby/site_ruby/1.8/DBD/OCI8
Copy oci8.rb to e:/ruby/lib/ruby/site_ruby/1.8
Copy oci8lib.so to e:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
OK?
Enter Yes/No: Yes
Copying OCI8.rb to e:/ruby/lib/ruby/site_ruby/1.8/DBD/OCI8 ... done
Copying oci8.rb to e:/ruby/lib/ruby/site_ruby/1.8 ... done
Copying oci8lib.so to e:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt ... done
OK</pre>
<p>You can test the driver by running a query using Ruby.</p>
<pre>E:\&gt;ruby -r oci8 -e "OCI8.new('foo','12345','sid').exec(
'SELECT * from users') do |r| puts r.join(' | ') ; end"</pre>
</li>
<li>Install the ActiveRecord Oracle adapter.gem
<pre>E:\ruby&gt;install activerecord-oracle-adapter --source http://gems.rubyonrails.org</pre>
</li>
<li>Update config/database.yml to connect to Oracle
<pre>development:
  adapter: oracle
  database: sid
  username: foo
  password: 12345
  timeout: 5000</pre>
</li>
<li>Test by doing a rake db:migrate.</li>
<li>Test by running the Ruby on Rails server and making sure there are no errors upon startup.</li>
</ol>
<p>This article is based on these articles.</p>
<ul>
<li><a title="Oracle in Ruby on Rails" href="http://wiki.rubyonrails.com/rails/pages/Oracle">Oracle in Ruby on Rails</a></li>
<li><a title="Ruby on Rails with Oracle FAQ" href="http://www.oracle.com/technology/pub/articles/saternos-ror-faq.html">Ruby on Rails with Oracle FAQ</a></li>
<li><a title="Connecting Ruby on Rails to Oracle on an Intel Mac in Leopard (Mac OSX 10.5)" href="http://www.foliosus.com/2007/11/19/connecting-ruby-on-rails-to-oracle-on-an-intel-mac-in-leopard-mac-osx-105/">Connecting Ruby on Rails to Oracle on an Intel Mac in Leopard (Mac OSX 10.5)</a></li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F10%2F08%2Fruby-on-rails-and-oracle%2F&amp;linkname=Ruby%20on%20Rails%20and%20Oracle"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
<li><a href='http://betweengo.com/2006/01/10/possible-reason-for-ruby-on-rails-tests-failing/' rel='bookmark' title='Permanent Link: Possible reason for Ruby on Rails tests failing'>Possible reason for Ruby on Rails tests failing</a></li>
<li><a href='http://betweengo.com/2005/10/16/what-is-ruby-on-rails/' rel='bookmark' title='Permanent Link: What Is Ruby on Rails'>What Is Ruby on Rails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/10/08/ruby-on-rails-and-oracle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter and Rails</title>
		<link>http://betweengo.com/2008/07/22/twitter-and-rails/</link>
		<comments>http://betweengo.com/2008/07/22/twitter-and-rails/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 23:22:09 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=235</guid>
		<description><![CDATA[Twitter has become the poster child of why not to use Ruby on Rails.  Recently a friend of mine started a company and when I noticed he used PHP I asked why he didn&#8217;t use Rails.  He responded &#8220;Twitter uses Rails and they keep going down.  Facebook uses PHP.  We&#8217;ll use PHP.&#8221;
There is an interesting [...]


Related posts:<ol><li><a href='http://betweengo.com/2005/11/14/introduction-to-ruby-on-rails-presentation/' rel='bookmark' title='Permanent Link: Introduction to Ruby on Rails Presentation'>Introduction to Ruby on Rails Presentation</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
<li><a href='http://betweengo.com/2005/10/16/what-is-ruby-on-rails/' rel='bookmark' title='Permanent Link: What Is Ruby on Rails'>What Is Ruby on Rails</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Twitter has become the poster child of why not to use Ruby on Rails.  Recently a friend of mine started a company and when I noticed he used PHP I asked why he didn&#8217;t use Rails.  He responded &#8220;Twitter uses Rails and they keep going down.  Facebook uses PHP.  We&#8217;ll use PHP.&#8221;</p>
<p>There is an interesting <a title="5 Question Interview with Twitter Developer Alex Payne" href="http://www.radicalbehavior.com/5-question-interview-with-twitter-developer-alex-payne/">interview</a> w/ Twitter developer Alex Payne about the issues Twitter has had with Ruby on Rails.</p>
<blockquote><p>The common wisdom in the Rails community at this time is that scaling Rails is a matter of cost: just throw more CPUs at it.  The problem is that more instances of Rails (running as part of a Mongrel cluster, in our case) means more requests to your database.  At this point in time there’s no facility in Rails to talk to more than one database at a time.  The solutions to this are caching the hell out of everything and setting up multiple read-only slave databases..</p>
<p>All the convenience methods and syntactical sugar that makes Rails such a pleasure for coders ends up being absolutely punishing, performance-wise.  Once you hit a certain threshold of<br />
traffic, either you need to strip out all the costly neat stuff that Rails does for you (RJS, ActiveRecord, ActiveSupport, etc.) or move the slow parts of your application out of Rails, or both.</p>
<p>It’s also worth mentioning that there shouldn’t be doubt in anybody’s mind at this point that Ruby itself is slow.  It’s great that people are hard at work on faster implementations of the language, but right now, it’s tough.  If you’re looking to deploy a big web application and you’re language-agnostic, realize that the same operation in Ruby will take less time in Python.  All of us working on Twitter are big Ruby fans, but I think it’s worth being frank that this isn’t one of those relativistic language issues.  Ruby is slow.</p></blockquote>
<p>In April 2007, <a title="Amateur Hour Over At Twitter?" href="http://www.techcrunch.com/2008/04/23/amateur-hour-over-at-twitter/">former</a> Chief Architect Blaine Cook made a presentation called <a title="Scaling Twitter" href="http://www.slideshare.net/Blaine/scaling-twitter">Scaling Twitter</a>.  It&#8217;s a well done presentation, even if everything is black.</p>
<p>In May 2008 there were rumors that <a title="Twitter Said To Be Abandoning Ruby on Rails" href="http://www.techcrunch.com/2008/05/01/twitter-said-to-be-abandoning-ruby-on-rails/">Twitter was abandoning Rails</a>.  SitePoints believes it is not a framework issue but rather an <a title="Did Rails Sink Twitter?" href="http://www.sitepoint.com/blogs/2008/06/06/did-rails-sink-twitter/">architectural issue</a> that is causing Twitter&#8217;s problems.</p>
<p>There are many large sites that run Rails well and many smaller ones that do not.  It seems like another case of the &#8220;leaky abstraction&#8221; where we have such a nice framework that we think we can abstract away issues like scaling but in the end when the site becomes big enough we have to look under the covers.</p>
<p>Ruby has been documented to have <a title="You Used Ruby to Write WHAT?!" href="http://betweengo.com/ruby-on-rails/2008/03/13/you-used-ruby-to-write-what/">I/O issues and general performance issues</a>.  Like PHP before it looks like Ruby needs to mature more and deal better with scaling and I/O issues.  I am confident though this will happen because of the tremendous momentum of Ruby on Rails.  However I am keeping on eye on <a title="Django" href="http://www.djangoproject.com/">Django</a>, especially now that Google has thrown its large hat into Django&#8217;s ring.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F07%2F22%2Ftwitter-and-rails%2F&amp;linkname=Twitter%20and%20Rails"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2005/11/14/introduction-to-ruby-on-rails-presentation/' rel='bookmark' title='Permanent Link: Introduction to Ruby on Rails Presentation'>Introduction to Ruby on Rails Presentation</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
<li><a href='http://betweengo.com/2005/10/16/what-is-ruby-on-rails/' rel='bookmark' title='Permanent Link: What Is Ruby on Rails'>What Is Ruby on Rails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/07/22/twitter-and-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monit and Mongrel</title>
		<link>http://betweengo.com/2008/05/27/monit/</link>
		<comments>http://betweengo.com/2008/05/27/monit/#comments</comments>
		<pubDate>Tue, 27 May 2008 18:14:29 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[monit]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=184</guid>
		<description><![CDATA[This post about Monit and Mongrel is based on this fantastic post, Monit makes Mongrel play nice!
Install Monit from source:
$ wget http://www.tildeslash.com/monit/dist/monit-4.10.1.tar.gz
$ tar xvfz monit-4.10.1.tar.gz
$ cd monit-4.10.1
$ ./configure -prefix=/usr  (the default prefix is /usr/local)
$ make
$ make install
Configure Monit:
In the monit source you will find a sample monitrc which is completely commented out.  You [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/03/28/configuring-capistrano-and-mongrel/' rel='bookmark' title='Permanent Link: Configuring Capistrano and Mongrel'>Configuring Capistrano and Mongrel</a></li>
<li><a href='http://betweengo.com/2008/03/31/configuring-apache-to-work-with-a-mongrel-cluster/' rel='bookmark' title='Permanent Link: Configuring Apache to work with a Mongrel Cluster'>Configuring Apache to work with a Mongrel Cluster</a></li>
<li><a href='http://betweengo.com/2008/03/28/installing-ruby-on-rails-on-red-hat-enterprise-linux-4/' rel='bookmark' title='Permanent Link: Installing Ruby on Rails on Red Hat Enterprise Linux 4'>Installing Ruby on Rails on Red Hat Enterprise Linux 4</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This post about <a title="Monit" href="http://www.tildeslash.com/monit/">Monit</a> and <a title="Mongrel" href="http://mongrel.rubyforge.org/">Mongrel</a> is based on this fantastic post, <a title="Monit makes Mongrel play nice!" href="http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/">Monit makes Mongrel play nice!</a></p>
<p><strong>Install Monit from source:</strong></p>
<pre>$ wget http://www.tildeslash.com/monit/dist/monit-4.10.1.tar.gz
$ tar xvfz monit-4.10.1.tar.gz
$ cd monit-4.10.1
$ ./configure -prefix=/usr  (the default prefix is /usr/local)
$ make
$ make install</pre>
<p><strong>Configure Monit:</strong></p>
<p>In the monit source you will find a sample monitrc which is completely commented out.  You can then copy it to wherever you like and then edit it.  Here is my monitrc.</p>
<pre># Start monit in the background (run as a daemon) and check services at
# 1-minute intervals.
set daemon  60

# Set logging.
set logfile /tmp/monit.log

# Set the list of mail servers for alert delivery.
set mailserver localhost

# Set alert recipients.
set alert foo@example.com                # receive all alerts

# Start Monit's embedded web server.
set httpd port 2812 and
     allow admin:monit      # require user 'admin' with password 'monit'

# Mongrel - Development
# Check that Mongrel is running and that it responds to HTTP
# requests. Check its resource usage such as cpu and memory. If the
# process is not running, monit will restart it by default. In case
# the service was restarted very often and the problem remains, it is
# possible to disable monitoring using the TIMEOUT statement.
check process mongrel-dev with pidfile /rails/log/mongrel.pid
    start program = "/usr/bin/mongrel_rails start -d  -c /rails
                          -p 3000 -P /rails/log/mongrel.pid"
    stop program  = "/usr/bin/mongrel_rails stop
                           -P /rails/log/mongrel.pid"
    if cpu &gt; 50% for 2 cycles then alert
    if cpu &gt; 80% for 5 cycles then restart
    if totalmem &gt; 60.0 MB for 5 cycles then restart
    if loadavg(5min) greater than 10 for 8 cycles then restart
    if failed port 3000 protocol http
       with timeout 15 seconds
       for 2 cycles
       then restart
    if 3 restarts within 5 cycles then timeout
    group mongrel-dev</pre>
<p>After you are done configuring monitrc copy it to /etc.</p>
<pre>$ sudo cp monitrc /etc</pre>
<p>To test the configuration:</p>
<pre>$ sudo monit -t</pre>
<p><strong>Run Monit:</strong></p>
<p>To start monit:</p>
<pre>$ sudo monit</pre>
<p>To restart monit:</p>
<pre>$ sudo monit reload</pre>
<p>To stop monit:</p>
<pre>$ sudo monit quit</pre>
<p>To see monit&#8217;s log (assuming you are using my configuration):</p>
<pre>$ tail -f /tmp/monit.log</pre>
<p><strong>Learn More:</strong></p>
<p><a title="Monit Getting Started" href="http://www.tildeslash.com/monit/doc/monit.pdf">Monit Getting Started</a><br />
<a title="Monit Manual" href="http://www.tildeslash.com/monit/doc/manual.php">Monit Manual</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F05%2F27%2Fmonit%2F&amp;linkname=Monit%20and%20Mongrel"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/03/28/configuring-capistrano-and-mongrel/' rel='bookmark' title='Permanent Link: Configuring Capistrano and Mongrel'>Configuring Capistrano and Mongrel</a></li>
<li><a href='http://betweengo.com/2008/03/31/configuring-apache-to-work-with-a-mongrel-cluster/' rel='bookmark' title='Permanent Link: Configuring Apache to work with a Mongrel Cluster'>Configuring Apache to work with a Mongrel Cluster</a></li>
<li><a href='http://betweengo.com/2008/03/28/installing-ruby-on-rails-on-red-hat-enterprise-linux-4/' rel='bookmark' title='Permanent Link: Installing Ruby on Rails on Red Hat Enterprise Linux 4'>Installing Ruby on Rails on Red Hat Enterprise Linux 4</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/05/27/monit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Rails 2.0 Application w/ Restful Authentication</title>
		<link>http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/</link>
		<comments>http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 04:55:54 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=151</guid>
		<description><![CDATA[Today I took the plunge and installed Rails 2.0.2. Notes on the Rails 2.0 release can be found here.
Here are the steps I took.

Upgrade Ruby Gems to the latest version (in this case 1.0.1).
gem update --system
Install Ruby on Rails 2.0.2.
gem install rails -v 2.0.2
Install MySQL gem (as of March 5, 2008, it is version 2.7.3) [...]


Related posts:<ol><li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
<li><a href='http://betweengo.com/2008/03/28/installing-ruby-on-rails-on-red-hat-enterprise-linux-4/' rel='bookmark' title='Permanent Link: Installing Ruby on Rails on Red Hat Enterprise Linux 4'>Installing Ruby on Rails on Red Hat Enterprise Linux 4</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today I took the plunge and installed Rails 2.0.2. Notes on the Rails 2.0 release can be found <a title="Rails 2.0: It's done!" href="http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done">here</a>.</p>
<p>Here are the steps I took.</p>
<ol>
<li>Upgrade Ruby Gems to the latest version (in this case 1.0.1).<br />
<code>gem update --system</code></li>
<li>Install Ruby on Rails 2.0.2.<br />
<code>gem install rails -v 2.0.2</code></li>
<li>Install MySQL gem (as of March 5, 2008, it is version 2.7.3) and add MySQL executable to path.<br />
<code>gem install mysql</code></li>
<li>Create prayer application.<br />
<code>rails prayer -d mysql</code></li>
<li>Install <a title="Plugins - Restful Authentication" href="http://agilewebdevelopment.com/plugins/restful_authentication">Restful Authentication plugin</a>.<br />
<code>cd prayer</code><br />
<code>ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/</code></li>
<li>Create scaffold for prayer model.<br />
<code>ruby script/generate scaffold Prayer title:string body:text<br />
</code><br />
The first thing I noticed different about Rails 2.0 is that the scaffold now also generates the model and data migration file with title and body as columns in the prayer table. Also the format of the data migration file is slightly more compact.</li>
<li>Create user model with authentication. The <code>--include-activation</code> flag is to create the mailers for activation and signup notification.<br />
<code>ruby script/generate authenticated user sessions --include-activation</code></li>
<li>Configure config/database.yml and then create prayer and user tables in DB.<br />
<code>rake db:migrate</code></li>
<li>Configure SMTP settings.</li>
<li>Modify <code>app/models/user_mailer.rb</code>, replacing the place holders with constants which you can configure with different values for different environments using <code>config/environments/development.rb</code>, <code>config/environments/production.rb</code>.</li>
<li>Modify user_observer.rb to incorporate the reset and forgotten password features.</li>
<li>Create scaffold for role model.  Add an admin user.<br />
<code>ruby script/generate scaffold Role rolename:string</code></li>
<li>Create permission model.  Modify role and permission models to know about each other.<br />
<code>ruby script/generate model Permission</code></li>
<li>Modify user model to use permissions.</li>
</ol>
<p>Much of this post is based on this excellent post, <a title="Restful Authentication with all the bells and whistles" href="http://www.railsforum.com/viewtopic.php?id=14216">Restful Authentication with all the bells and whistles</a>.  At this point I did not continue with much of the tutorial, especially with parts like password forgotten, separate account controller, etc.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F04%2F07%2Fmy-first-rails-20-application-w-restful-authentication%2F&amp;linkname=My%20First%20Rails%202.0%20Application%20w%2F%20Restful%20Authentication"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
<li><a href='http://betweengo.com/2008/03/28/installing-ruby-on-rails-on-red-hat-enterprise-linux-4/' rel='bookmark' title='Permanent Link: Installing Ruby on Rails on Red Hat Enterprise Linux 4'>Installing Ruby on Rails on Red Hat Enterprise Linux 4</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Error in my_thread_global_end()&#8217; when running rake db:migrate</title>
		<link>http://betweengo.com/2008/04/03/error-in-my_thread_global_end-when-running-rake-dbmigrate/</link>
		<comments>http://betweengo.com/2008/04/03/error-in-my_thread_global_end-when-running-rake-dbmigrate/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 16:24:56 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=169</guid>
		<description><![CDATA[When I run rake db:migrate I get this error at the end.
Error in my_thread_global_end(): 1 threads didn't exit
I pinned it down to this code in one of my migration files.
# create admin user
user = User.new
user.login = 'admin'
user.password = 'password'
user.save(false)
If I don&#8217;t run user.save(false) I don&#8217;t get the error.  I am not sure why, the [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/10/09/rake-dbmigrate-hangs/' rel='bookmark' title='Permanent Link: rake db:migrate hangs'>rake db:migrate hangs</a></li>
<li><a href='http://betweengo.com/2005/10/26/php-and-mysql-41/' rel='bookmark' title='Permanent Link: Problem connecting to MySQL 4.1 via PHP'>Problem connecting to MySQL 4.1 via PHP</a></li>
<li><a href='http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/' rel='bookmark' title='Permanent Link: My First Rails 2.0 Application w/ Restful Authentication'>My First Rails 2.0 Application w/ Restful Authentication</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When I run rake db:migrate I get this error at the end.</p>
<pre>Error in my_thread_global_end(): 1 threads didn't exit</pre>
<p>I pinned it down to this code in one of my migration files.</p>
<pre># create admin user
user = User.new
user.login = 'admin'
user.password = 'password'
user.save(false)</pre>
<p>If I don&#8217;t run user.save(false) I don&#8217;t get the error.  I am not sure why, the user does get saved properly to the database.</p>
<p>I saw this post on the MySQL forums that seemed to <a title="MySQL Forums :: Newbie :: Error in my_thread_global_end(): 1 threads didn't exit" href="http://forums.mysql.com/read.php?10,153077,153234#msg-153234">indicate it was an issue with libmySQL.dll</a>.  So I upgraded my MySQL instance from 5.0.27 to 5.0.51a.  Of course this did not go smoothly, I got this error  when trying to reconfigure the MySQL server instance &#8220;MySQL service could not be started error 0&#8243;.  Fortunately another post on the MySQL forums, <a title="MySQL Forums :: Install :: Could not start service : Error 2003" href="http://forums.mysql.com/read.php?11,106123,106142#msg-106142">Could not start service : Error 2003</a>, solved this problem for me.  I just had to remove the following files from the mysql/data directory.</p>
<ul>
<li>ib_logfile0</li>
<li>ib_logfile1</li>
<li>ibdata1</li>
</ul>
<p>Unfortunately when I then did a rake db:migrate I saw this error.</p>
<pre>Mysql::Error: Table 'prayer.schema_info' doesn't exist:
SELECT version FROM schema_info</pre>
<p>After deleting and recreating the database I was finally able to run rake db:migrate.  Unfortunately I still got the same error that inspired this post.</p>
<p>Googling some more I saw a MySQL bug report, <a href="http://bugs.mysql.com/bug.php?id=25621">MySQL Bugs: #25621: Error in my_thread_global_end(): 1 threads didn&#8217;t exit</a>.  Apparently this is a client side issue and I think I can safely ignore it though it is quite annoying.</p>
<blockquote><p>Strictly speaking, this is not MySQL bug. This is a client bug &#8211; a client application (PHP, probably) linked with libmysqlclient calls my_thread_init() but does not call my_thread_end() as appropriate (doesn&#8217;t call at all or calls too late). MySQL client library detects this and issues a warning.</p>
<p>On the other hand, we can just remove the check and let buggy applications to fail some other way. Not calling my_thread_end() is a guaranteed memory leak. Calling it too late could easily crash the application.</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F04%2F03%2Ferror-in-my_thread_global_end-when-running-rake-dbmigrate%2F&amp;linkname=%26%238216%3BError%20in%20my_thread_global_end%28%29%26%238217%3B%20when%20running%20rake%20db%3Amigrate"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/10/09/rake-dbmigrate-hangs/' rel='bookmark' title='Permanent Link: rake db:migrate hangs'>rake db:migrate hangs</a></li>
<li><a href='http://betweengo.com/2005/10/26/php-and-mysql-41/' rel='bookmark' title='Permanent Link: Problem connecting to MySQL 4.1 via PHP'>Problem connecting to MySQL 4.1 via PHP</a></li>
<li><a href='http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/' rel='bookmark' title='Permanent Link: My First Rails 2.0 Application w/ Restful Authentication'>My First Rails 2.0 Application w/ Restful Authentication</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/04/03/error-in-my_thread_global_end-when-running-rake-dbmigrate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Problem updating restful_authentication plugin</title>
		<link>http://betweengo.com/2008/04/02/problem-updating-restful_authentication-plugin/</link>
		<comments>http://betweengo.com/2008/04/02/problem-updating-restful_authentication-plugin/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 19:41:28 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=167</guid>
		<description><![CDATA[I tried to update the restful_authentication plugin by doing this.
$ ruby script/plugin update restful_authentication
Unfortunately it didn&#8217;t do anything.
I know I don&#8217;t have the latest version because in another project I pulled down the latest restful_authentication code and it was different.
To get around this I forced an install with the latest code.
$ ruby script/plugin install -x [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/' rel='bookmark' title='Permanent Link: My First Rails 2.0 Application w/ Restful Authentication'>My First Rails 2.0 Application w/ Restful Authentication</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
<li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I tried to update the restful_authentication plugin by doing this.</p>
<pre>$ ruby script/plugin update restful_authentication</pre>
<p>Unfortunately it didn&#8217;t do anything.</p>
<p>I know I don&#8217;t have the latest version because in another project I pulled down the latest restful_authentication code and it was different.</p>
<p>To get around this I forced an install with the latest code.</p>
<pre>$ ruby script/plugin install -x \
&nbsp;&nbsp;&nbsp;&nbsp;http://svn.techno-weenie.net/projects/plugins/restful_authentication/</pre>
<p>Fortunately I received an answer about this on the rails mailing list.  Apparently update only works if the plugin is in svn:externals.  To do this you would install it with the -x flag (see list of flags by doing ruby script/plugin install -h&#8217;).</p>
<p>However if you try this with the restful_authentication plugin you&#8217;ll see this.</p>
<pre>$ ruby script/plugin install -f \
&nbsp;&nbsp;&nbsp;&nbsp;http://svn.techno-weenie.net/projects/plugins/restful_authentication/
Cannot install using externals because this project is not under
subversion.</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F04%2F02%2Fproblem-updating-restful_authentication-plugin%2F&amp;linkname=Problem%20updating%20restful_authentication%20plugin"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/04/07/my-first-rails-20-application-w-restful-authentication/' rel='bookmark' title='Permanent Link: My First Rails 2.0 Application w/ Restful Authentication'>My First Rails 2.0 Application w/ Restful Authentication</a></li>
<li><a href='http://betweengo.com/2008/01/28/upgrading-to-rails-126/' rel='bookmark' title='Permanent Link: Upgrading to Rails 1.2.6'>Upgrading to Rails 1.2.6</a></li>
<li><a href='http://betweengo.com/2005/11/08/setting-up-a-windows-ruby-on-rails-environment/' rel='bookmark' title='Permanent Link: Setting up a Windows Ruby on Rails Environment'>Setting up a Windows Ruby on Rails Environment</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/04/02/problem-updating-restful_authentication-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_rails</title>
		<link>http://betweengo.com/2008/04/01/mod_rails/</link>
		<comments>http://betweengo.com/2008/04/01/mod_rails/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 04:02:08 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[HTTP Server]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=166</guid>
		<description><![CDATA[Previously I talked about configuring a production Ruby on Rails applications using a Mongrel cluster with an Apache front end / load balancer.  Now though a new Apache module was released called mod_rails which obviates the need for a Mongrel cluster.  Seems promising, both for simplicity of installation and performance.


Related posts:Installing Apache 2.2 [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/03/31/installing-apache-with-mod_rewrite-and-mod_proxy_balancer/' rel='bookmark' title='Permanent Link: Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer'>Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer</a></li>
<li><a href='http://betweengo.com/2008/03/31/configuring-apache-to-work-with-a-mongrel-cluster/' rel='bookmark' title='Permanent Link: Configuring Apache to work with a Mongrel Cluster'>Configuring Apache to work with a Mongrel Cluster</a></li>
<li><a href='http://betweengo.com/2008/03/28/configuring-capistrano-and-mongrel/' rel='bookmark' title='Permanent Link: Configuring Capistrano and Mongrel'>Configuring Capistrano and Mongrel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Previously I talked about <a title="Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer" href="http://betweengo.com/ruby-on-rails/2008/03/31/installing-apache-with-mod_rewrite-and-mod_proxy_balancer/">configuring a production Ruby on Rails applications using a Mongrel cluster with an Apache front end / load balancer</a>.  Now though a new Apache module was released called <a title="Phusion Passenger (a.k.a. mod_rails for Apache)" href="http://www.modrails.com/">mod_rails</a> which obviates the need for a Mongrel cluster.  Seems promising, both for simplicity of installation and performance.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2008%2F04%2F01%2Fmod_rails%2F&amp;linkname=mod_rails"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/03/31/installing-apache-with-mod_rewrite-and-mod_proxy_balancer/' rel='bookmark' title='Permanent Link: Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer'>Installing Apache 2.2 with mod_rewrite and mod_proxy_balancer</a></li>
<li><a href='http://betweengo.com/2008/03/31/configuring-apache-to-work-with-a-mongrel-cluster/' rel='bookmark' title='Permanent Link: Configuring Apache to work with a Mongrel Cluster'>Configuring Apache to work with a Mongrel Cluster</a></li>
<li><a href='http://betweengo.com/2008/03/28/configuring-capistrano-and-mongrel/' rel='bookmark' title='Permanent Link: Configuring Capistrano and Mongrel'>Configuring Capistrano and Mongrel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/04/01/mod_rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->