« CIO Magazine Goes Podcast | Main | SOA Governance Feature »

Ruby on Rails and OS X

Devlin Daley gave a presentation in our 601R class on Rails so that we could discuss frameworks and the choices Rails had made. While he was talking, I poked around a little since I wanted to get Rails going on my Powerbook and found this great little tutorial on getting Rails working on Mac OS X (Tiger).

The tutorial walks you through setting Rails up with SQLite and creating a simple application. I only ran into two problems with the tutorial as written. First, when you load the Ruby Gem for SQLite, it says to type:

sudo gem install sqlite3

In fact, this returns an error. You need to type:

sudo gem install sqlite3-ruby

Second, after you create the sqlite database, you need to set its permission so that the Web server can get to it:

chmod 666 addressbook.db

I like that this uses SQLite since it’s already installed on Tiger and easy to get going. SQLite is great for just exploring. I also like that it uses Apache since I’m very familiar with it.

Posted by windley on January 21, 2006 12:25 PM

See related posts:

2 Comments

Hey Phil - check out Locomotive. Ruby on Rails packaged as an OSX app.

http://locomotive.sourceforge.net/

Coincidentally, this week the Utah Ruby Users Group (http://www.urug.org) will be learning about another way to use Ruby on OS X: Ruby for Cocoa programming with RubyCocoa. The meeting is Wednesday night (Jan 25) at 7pm at Neumont University (106th South). Details/RSVP at http://rsvp.urug.org/rsvp/event/10