<?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>The Official OpenRain Blog &#187; rails</title>
	<atom:link href="http://blog.openrain.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.openrain.com</link>
	<description>Ruby Web Software Development In Phoenix, Arizona</description>
	<lastBuildDate>Fri, 11 Sep 2009 16:24:24 +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>Mention In Advanced Rails Recipes</title>
		<link>http://blog.openrain.com/2009/02/11/mention-in-advanced-rails-recipes/</link>
		<comments>http://blog.openrain.com/2009/02/11/mention-in-advanced-rails-recipes/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 00:29:19 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[General Announcements]]></category>
		<category><![CDATA[Technologies]]></category>
		<category><![CDATA[marc chung]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails recipes]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=230</guid>
		<description><![CDATA[Props to OpenRain&#8217;r Marc Chung for having the action_mailer_tls Rails plugin featured in Advanced Rails Recipes: Snack Recipe 47, Send E-mail via Gmail.
Note that the official plugin is now on github. We would have continued to maintain the URL that went to print, but no one told us we&#8217;d be in the book!
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-232" title="advanced_rails_recipes_p443_snippet" src="http://blog.openrain.com/wp-content/uploads/2009/02/advanced_rails_recipes_p443_snippet.png" alt="advanced_rails_recipes_p443_snippet" width="361" height="156" />Props to OpenRain&#8217;r Marc Chung for having the <a href="http://github.com/openrain/action_mailer_tls/tree/master">action_mailer_tls Rails plugin</a> featured in <a href="http://www.pragprog.com/titles/fr_arr/advanced-rails-recipes">Advanced Rails Recipes</a>: Snack Recipe 47, Send E-mail via Gmail.</p>
<p>Note that <a href="http://www.pragprog.com/titles/fr_arr/advanced-rails-recipes">the official plugin is now on github</a>. We would have continued to maintain the URL that went to print, but no one told us we&#8217;d be in the book!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2009%2F02%2F11%2Fmention-in-advanced-rails-recipes%2F&amp;linkname=Mention%20In%20Advanced%20Rails%20Recipes"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2009/02/11/mention-in-advanced-rails-recipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test-Driven Rails Development Lunch Session Tomorrow</title>
		<link>http://blog.openrain.com/2008/10/07/test-driven-rails-development-lunch-session-tomorrow/</link>
		<comments>http://blog.openrain.com/2008/10/07/test-driven-rails-development-lunch-session-tomorrow/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:48:58 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Technologies]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[lunch]]></category>
		<category><![CDATA[openrain]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=151</guid>
		<description><![CDATA[Elite OpenRain ninja Remi Taylor will be presenting his approach to test-driven Rails development tomorrow afternoon at 1:30pm at OpenRain HQ. That&#8217;s Wednesday, October 8th for approximately 1 hour. All are welcome. No reservations required. Forecast: 99 degrees with a 90% chance of awesome.
You can grab the latest presentation file here. Remi&#8217;s synopsis&#8230;

Test-driven development has [...]]]></description>
			<content:encoded><![CDATA[<p>Elite OpenRain ninja Remi Taylor will be presenting his approach to test-driven Rails development tomorrow afternoon at 1:30pm at <a href="http://openrain.com/about/office">OpenRain HQ</a>. That&#8217;s Wednesday, October 8th for approximately 1 hour. All are welcome. No reservations required. Forecast: 99 degrees with a 90% chance of awesome.</p>
<p>You can grab the latest presentation file <a href="http://github.com/remi/presentations/tree/master/test-driving-rails-development">here</a>. Remi&#8217;s synopsis&#8230;</p>
<p><span id="more-151"></span></p>
<p><em>Test-driven development has changed the way that many programmers design, write, test, refactor, and maintain their code. Myself included.</em></p>
<p><em>In this presentation, I&#8217;ll be introducing the concept of test-driven development and walking through the process of test-driving a typical Rails application.</em></p>
<p><em>This presentation is intended for Rails developers who:</em></p>
<ul>
<li><em>are new to testing</em></li>
<li><em>have been testing, but not test-driving</em></li>
<li><em>have been test-driving, but not with RSpec</em></li>
<li><em>have been test-driving with RSpec and hope to learn a few new tricks :)</em></li>
</ul>
<p><em>Along with writing specifications for Models, Views, &amp; Controllers, I hope to cover:</em></p>
<ul>
<li><em>writing user stories (acceptance tests)</em></li>
<li><em>creating custom RSpec matchers</em></li>
<li><em>continious integration using Autotest / CruiseControl.rb</em></li>
<li><em>testing JavaScript &amp; AJAX</em></li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F10%2F07%2Ftest-driven-rails-development-lunch-session-tomorrow%2F&amp;linkname=Test-Driven%20Rails%20Development%20Lunch%20Session%20Tomorrow"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/10/07/test-driven-rails-development-lunch-session-tomorrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABLEconf 2008 Slides</title>
		<link>http://blog.openrain.com/2008/09/22/ableconf-2008-slides/</link>
		<comments>http://blog.openrain.com/2008/09/22/ableconf-2008-slides/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 18:14:42 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Technologies]]></category>
		<category><![CDATA[ableconf]]></category>
		<category><![CDATA[ableconf2008]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[keynote]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[slides]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=136</guid>
		<description><![CDATA[Thanks for being a great audience! Here are the slides from both hours&#8230;
Getting Started With Ruby on Rails: [Keynote] [PDF]
Ruby on Rails Deployment &#38; Hosting: [Keynote] [PDF]
]]></description>
			<content:encoded><![CDATA[<p>Thanks for being a great audience! Here are the slides from both hours&#8230;</p>
<p>Getting Started With Ruby on Rails: [<a href="http://blog.openrain.com/wp-content/uploads/2008/09/getting-started-with-ruby-on-rails.zip">Keynote</a>] [<a href="http://blog.openrain.com/wp-content/uploads/2008/09/getting-started-with-ruby-on-rails.pdf">PDF</a>]</p>
<p>Ruby on Rails Deployment &amp; Hosting: [<a href="http://blog.openrain.com/wp-content/uploads/2008/09/ruby-on-rails-deployment-hosting.zip">Keynote</a>] [<a href="http://blog.openrain.com/wp-content/uploads/2008/09/ruby-on-rails-deployment-hosting.pdf">PDF</a>]</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F09%2F22%2Fableconf-2008-slides%2F&amp;linkname=ABLEconf%202008%20Slides"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/09/22/ableconf-2008-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby/Rails Training Now 40% Cheaper!</title>
		<link>http://blog.openrain.com/2008/09/19/rubyrails-training-now-40-cheaper/</link>
		<comments>http://blog.openrain.com/2008/09/19/rubyrails-training-now-40-cheaper/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 00:53:19 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[General Announcements]]></category>
		<category><![CDATA[openrain]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rate]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=132</guid>
		<description><![CDATA[New on-site Ruby/Rails training rates are now available, here, and they&#8217;re better than ever! These rate reductions mean OpenRain training is..

Cheaper than sending a team to RailsConf.
In the comfort of your own office.
Supplemented by addressing the specific needs of your company.
Able to flow into a development agreement if you would benefit from additional assistance.

We realize [...]]]></description>
			<content:encoded><![CDATA[<p>New on-site Ruby/Rails training rates are now available, <a href="http://openrain.com/about/training">here</a>, and they&#8217;re better than ever! These rate reductions mean OpenRain training is..</p>
<ol>
<li>Cheaper than sending a team to RailsConf.</li>
<li>In the comfort of your own office.</li>
<li>Supplemented by addressing the specific needs of your company.</li>
<li>Able to flow into a development agreement if you would benefit from additional assistance.</li>
</ol>
<p>We realize many companies are transitioning to Ruby with experienced Java and .Net staff, and are thrilled to offer this service at lower rates. With <a href="http://www.theserverside.com/news/thread.tss?thread_id=50727">the shocking Spring framework maintenance policy change</a>, there&#8217;s never been a better time to go Ruby!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F09%2F19%2Frubyrails-training-now-40-cheaper%2F&amp;linkname=Ruby%2FRails%20Training%20Now%2040%25%20Cheaper%21"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/09/19/rubyrails-training-now-40-cheaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started With Rails: 2008.09.27</title>
		<link>http://blog.openrain.com/2008/09/15/getting-started-with-rails/</link>
		<comments>http://blog.openrain.com/2008/09/15/getting-started-with-rails/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 00:40:19 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[joe developer]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=128</guid>
		<description><![CDATA[Getting Started With Rails evening tutorial workshop with Preston Lee.
Joe Developer at OpenRain HQ
Wednesday, September 27th, 2008. 6pm.
Light dinner provided.
This event is for developers new to or otherwise interested in web development using Ruby on Rails. Laptops encouraged. WiFi provided. See you there!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.openrain.com/wp-content/uploads/2008/08/rails.png"><img class="alignright size-medium wp-image-98" title="rails" src="http://blog.openrain.com/wp-content/uploads/2008/08/rails.png" alt="" width="87" height="112" /></a>Getting Started With Rails evening tutorial workshop with <a href="http://prestonlee.com">Preston Lee</a>.<br />
<a href="http://groups.google.com/group/joe-developer">Joe Developer</a> at <a href="http://openrain.com/about/office">OpenRain HQ<br />
</a>Wednesday, September 27th, 2008. 6pm.<br />
Light dinner provided.</p>
<p>This event is for developers new to or otherwise interested in web development using <a href="http://www.rubyonrails.org/">Ruby on Rails</a>. Laptops encouraged. WiFi provided. See you there!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F09%2F15%2Fgetting-started-with-rails%2F&amp;linkname=Getting%20Started%20With%20Rails%3A%202008.09.27"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/09/15/getting-started-with-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sister Partnership With Railsware</title>
		<link>http://blog.openrain.com/2008/08/28/sister-partnership-with-railsware/</link>
		<comments>http://blog.openrain.com/2008/08/28/sister-partnership-with-railsware/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 21:01:06 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[openrain]]></category>
		<category><![CDATA[partner]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railsware]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=115</guid>
		<description><![CDATA[OpenRain is a U.S. company with U.S. staff. The value of direct, barrier-free, native-language communication outweighs any perceived cost savings of outsourcing our niche, not to mention it&#8217;s a lot more fun to work in the same office and time zone. For a typical 3-month project with 2 developers, it&#8217;s not uncommon in an outsourced [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://openrain.com">OpenRain</a> is a U.S. company with U.S. staff. The value of direct, barrier-free, native-language communication outweighs any perceived cost savings of outsourcing our niche, not to mention it&#8217;s a lot more fun to work in the same office and time zone. For a typical 3-month project with 2 developers, it&#8217;s not uncommon in an outsourced environment to need a full-time project manager on both client and developer sides just to manage tasks, meetings, legal, logistical issues etc.; an unnecessary cost which alone has increased the bill 50%. By keeping operations local, we&#8217;re able to remain far more agile in a far lighter development environment.</p>
<p>Nevertheless, we periodically talk to a potential client who is dead set on outsourcing work to &#8220;save money&#8221;. While we&#8217;ll respectfully disagree with you, we&#8217;ll kindly connect your business to a new sister shop located in the Ukraine who exclusively focuses on outsourcing, something which OpenRain doesn&#8217;t do. Both OpenRain and <a href="http://railsware.com">Railsware</a> focus on <a href="http://www.ruby-lang.org/">Ruby</a> <a href="http://openrain.com/about/development">development</a> for U.S. companies, and are pleased to announce this partnership so we may jointly work towards building a bigger, better Ruby development industry as a whole. We&#8217;d love to have you in it!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F08%2F28%2Fsister-partnership-with-railsware%2F&amp;linkname=Sister%20Partnership%20With%20Railsware"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/08/28/sister-partnership-with-railsware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Ruby and Rails on OSX</title>
		<link>http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/</link>
		<comments>http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 15:00:49 +0000</pubDate>
		<dc:creator>marc.chung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=42</guid>
		<description><![CDATA[Welcome to the first of many posts in the OpenRain Tips and Notes series. We&#8217;re going to use this space to share some of the tips, tricks, howto guides, and notes, that we use internally to keep us productive and make us happier programmers.
Today, we&#8217;re going to learn how to get your brand new shiny [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the first of many posts in the OpenRain Tips and Notes series. We&#8217;re going to use this space to share some of the tips, tricks, howto guides, and notes, that we use internally to keep us productive and make us happier programmers.</p>
<p>Today, we&#8217;re going to learn how to get your brand new shiny Mac OS X machine setup for Ruby and Ruby on Rails development.  When we&#8217;re done, the full software stack will include <a href="http://www.ruby-lang.org">Ruby 1.8.7</a>, <a href="http://www.rubyonrails.org">Rails 2.1.0</a>, <a href="http://www.mysql.com">MySQL 5.0.51</a>, and <a href="http://mongrel.rubyforge.org/">Mongrel 1.1.5</a>.</p>
<p>And, who might you be? A programmer, comfortable at the command line, running on Mac (Leopard, 10.5.4), and interested in Ruby and Rails.</p>
<h2>Preamble</h2>
<p>Setting up a complete Ruby on Rails environment for local development can be overwhelming, especially if you&#8217;re new to it, but even if you&#8217;re done it before. Depending on your level of comfortability, there several ways you can setup Ruby and Rails on OS X from scratch, so please keep in mind that this guide is one of several &#8220;right&#8221; ways to do this.</p>
<h2>The most &#8220;right&#8221; way to setup Ruby, Rails, MySQL, and Mongrel on your Mac</h2>
<h3>Xcode and MacPorts</h3>
<p><img class="alignnone size-medium wp-image-96" title="xcode" src="http://blog.openrain.com/wp-content/uploads/2008/08/xcode.png" alt="" width="80" height="80" /></p>
<p>Download and install a copy of the Xcode Developer Tools DVD image from <a href="https://connect.apple.com/">Apple&#8217;s Apple Developer Connection</a>.  Membership to ADC is free and highly encouraged if you&#8217;re doing any sort of software development for the Mac.  It&#8217;s a good source for all your Apple programming activities. [Download &gt; Developer tools &gt; Xcode 3.1 Developer DVD (Disk Image)].</p>
<p>Download and install a copy of <a href="http://www.macports.org/">MacPorts</a>.   Since Mac OS X is a descendent of Unix, you can download, compile, and install all sorts of existing Unix software on your Mac.  However, doing this manually becomes tiring almost immediately since you have to manage versions, dependencies, and conflicts all by yourself. The MacPort system is a convenient tool for managing the life-cycle of source-based installations.  Any software that MacPorts installs, is kept separate from the software that comes with your Mac.</p>
<h3>Update your environment variables</h3>
<p>Once MacPort has been properly installed, modify your $PATH and $MANPATH environment variables with the location that MacPorts installs all it&#8217;s software in.</p>
<p>For example, in ~/.bash_profile:</p>
<blockquote><p>export PATH=~/bin:<strong>/opt/local/bin:/opt/local/sbin</strong>:$PATH<br />
export MANPATH=<strong>/opt/local/share/man</strong>:$MANPATH</p></blockquote>
<h3>Ruby, ruby, ruby</h3>
<p><img class="alignright size-medium wp-image-74" title="ruby_logo" src="http://blog.openrain.com/wp-content/uploads/2008/08/ruby_logo.png" alt="" width="94" height="108" /></p>
<p>The good news is that, on Leopard (OS.X 10.5.4), Ruby is an officially supported language.  Out of the box, this includes:</p>
<ul>
<li>the warm fuzzy feeling of Ruby running on OS X</li>
<li>the ability to debug Ruby processes with dtrace</li>
<li>integration with Cocoa via the RubyCocoa bindings, and</li>
<li>using Ruby to control and message OS X applications via the AppleEvent infrastructure</li>
</ul>
<p>The bad news is that updates don&#8217;t flow as fast from Apple so, for instance, running the latest version of Ruby, (1.8.7 as of this writing) isn&#8217;t possible unless you roll your own Ruby and RubyGems environment.</p>
<p>To install Ruby and RubyGems from the command line:</p>
<blockquote><p>$ sudo port install ruby<br />
$ sudo port install rb-rubygems</p></blockquote>
<h3>RubyGems for Rails and everything else</h3>
<p><img class="alignnone size-full wp-image-95" title="rubygems_logo2" src="http://blog.openrain.com/wp-content/uploads/2008/08/rubygems_logo2.png" alt="" width="80" height="80" /></p>
<p>Once you&#8217;ve got RubyGems installed, setting up the rest of your system is easy to do from the command line:</p>
<blockquote><p>$ sudo gem install rails rake capistrano capistrano-ext libxml-ruby mongrel hpricot</p></blockquote>
<p><img class="alignnone size-full wp-image-98" title="rails" src="http://blog.openrain.com/wp-content/uploads/2008/08/rails.png" alt="" width="87" height="112" /></p>
<p>This installs Rails, as well as a bunch of other useful gems into:</p>
<blockquote><p>/opt/local/lib/ruby/gems/1.8/gems</p></blockquote>
<h3>Install MySQL (Option 1: via MacPort)</h3>
<p>There are two options for installing MySQL. Option 1 continues to use MacPort while option 2, a little further down the page, uses the binary installer.  Either option works well.</p>
<p><img class="alignnone size-medium wp-image-91" title="logo_mysql_sun" src="http://blog.openrain.com/wp-content/uploads/2008/08/logo_mysql_sun.gif" alt="" width="205" height="68" /></p>
<blockquote><p>$ sudo port install mysql5 +server<br />
$ sudo -u mysql mysql_install_db5<br />
$ ln -s /opt/local/share/mysql5/mysql/mysql.server ~/bin/mysql.server</p></blockquote>
<p>The first and second command installs and setups MySQL5 via MacPort.  The third command sets up a convenient helper script which you can use to start and stop MySQL server from the command line:</p>
<blockquote><p>$ sudo mysql.server {start|stop|restart|reload|force-reload|status}</p></blockquote>
<p>Optionally, you can configure MySQL to start up automatically when OS X boots.</p>
<blockquote><p>sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist</p></blockquote>
<h3>Install the native MySQL driver</h3>
<p>Out of the box, Rails comes with a pure-Ruby MySQL adapter, though all production Rails environments running on MySQL will use the native binary drivers since they are considerable faster.  To get the native MySQL drivers from the command line:</p>
<blockquote><p>sudo gem install mysql &#45;&#45; &#45;&#45;with-mysql-config=/opt/local/bin/mysql_config5</p></blockquote>
<h3>Install MySQL (Option 2: via the binary distribution from mysql.com)</h3>
<p>One alternative to installing MySQL from MacPort is to install the binary distribution from mysql.com.</p>
<blockquote><p><a href="http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg">Download</a> and install the DMG.</p></blockquote>
<p>Optionally, you can install the System Preferences panel and a startup script which starts MySQL up along with OS X.</p>
<h3>Install the native MySQL driver</h3>
<p>Similarly, you&#8217;ll also need to configure the MySQL RubyGem driver</p>
<blockquote><p>$ sudo gem install mysql &#45;&#45; &#45;&#45;with-mysql-dir=/usr/local/mysql &#45;&#45;with-mysql-include=/usr/local/mysql/include/ &#45;&#45;with-mysql-lib=/usr/local/mysql/lib/ &#45;&#45;with-mysql-config=/usr/local/mysql/bin/mysql_config</p></blockquote>
<h3>Fin</h3>
<p><img class="alignnone size-medium wp-image-99" title="nacho_libre200" src="http://blog.openrain.com/wp-content/uploads/2008/08/nacho_libre200.jpg" alt="" width="188" height="200" /></p>
<p>That wasn&#8217;t too bad.  If you followed the directions correctly, your shiny new Mac should be properly setup with Ruby 1.8.7 and Rails 2.1.0 running on MySQL 5.0. For performance purposes we also installed Mongrel and the MySQL native drivers which are automatically used by Rails during development.</p>
<p>A super secret cheat sheet:</p>
<blockquote><p>Install <strong><a href="https://connect.apple.com">Xcode 3.1</a></strong><br />
Install <strong><a href="http://www.macports.org">MacPort 1.600</a></strong><br />
sudo port install ruby<br />
sudo port install rb-rubygems<br />
sudo gem install rake rails capistrano capistrano-ext libxml-ruby mongrel hpricot<br />
sudo port install mysql5 +server<br />
sudo -u mysql mysql_install_db5<br />
sudo gem install mysql &#45;&#45; &#45;&#45;with-mysql-config=/opt/local/bin/mysql_config5</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F08%2F20%2Fsetup-ruby-and-rails-on-osx%2F&amp;linkname=Setup%20Ruby%20and%20Rails%20on%20OSX"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>OpenRain F/OSS Rails Plugin Repository</title>
		<link>http://blog.openrain.com/2008/07/16/rails-plugin-repository/</link>
		<comments>http://blog.openrain.com/2008/07/16/rails-plugin-repository/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 06:03:39 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[openrain]]></category>
		<category><![CDATA[openrain power tools]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.openrain.com/?p=12</guid>
		<description><![CDATA[We do Rails, and we&#8217;ve been keeping a secret from you.
You can grab some of the tools we maintain for our own production Rails apps for free. Now, we&#8217;re not going to give you all our marbles, but there&#8217;s nothing quite sweeter than commercially-funded Open Source software, especially when it&#8217;s written in Ruby, and by [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.openrain.com/wp-content/uploads/2008/07/rails.png"><img class="alignright size-full wp-image-13" title="Ruby on Rails" src="http://blog.openrain.com/wp-content/uploads/2008/07/rails.png" alt="" width="87" height="112" /></a>We do Rails, and we&#8217;ve been keeping a secret from you.</p>
<p>You can grab some of the tools we maintain for our own production Rails apps for <em>free</em>. Now, we&#8217;re not going to give you <em>all</em> our marbles, but there&#8217;s nothing quite sweeter than commercially-funded Open Source software, <em>especially</em> when it&#8217;s written in Ruby, and by people that do it for a living. Add the following URL to your plugin repository list like so..</p>
<blockquote><p><em>script/plugin source http://code.openrain.com/rails/</em></p></blockquote>
<p>I&#8217;d recommend checking out <a href="http://code.openrain.com/rails/openrain_power_tools/">OpenRain Power Tools</a> first for a slew of tiny wins. We&#8217;ll be providing examples of how to use this stuff, so stay tuned!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.openrain.com%2F2008%2F07%2F16%2Frails-plugin-repository%2F&amp;linkname=OpenRain%20F%2FOSS%20Rails%20Plugin%20Repository"><img src="http://blog.openrain.com/wp-content/plugins/add-to-any/share_save_256_24.gif" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.openrain.com/2008/07/16/rails-plugin-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
