Installing Rails 3 on Mac OS X Snow Leopard

… should be as simple as typing

sudo gem install rails --pre

in your Terminal. If something doesnt work with the database, try:

sudo gem install sqlite3-ruby

you are now ready to generate a new rails app by typing

rails new myapp
cd myapp

test it by starting the server

rails server

go to http://localhost:3000 in your browser and click "About your application's environment" now you should see something like this:

Ruby version      1.9.2 (x86_64-darwin10.4.0)
RubyGems version  1.3.7
Rack version      1.1
Rails version     3.0.0.beta4
...

Using Mongrel with Rails 3

install mongrel by typing

gem install mongrel --pre

then add to the Gemfile in your Rails 3 Appliation:

gem 'mongrel', '1.2.0.pre2'

and in your application folder try

rails server

now it should say

<div>=> Booting Mongrel</div>
=> Rails 3.0.0.beta4 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
...