追記:エラー対応

Railsテスト用に作成したらエラーになってしまったので、
記することにします。

$pwd
Users/monote
$mkdir dev
$cd dev
$mkdir rails
$cd rails
$pwd
Users/monote/dev/rails

のようにrails用にフォルダ作成。

$rails test

にてtest プロジェクト作成。

$cd test
$ruby script/server
./script/../config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
Cannot find gem for Rails =1.2.6.0:
    Install the missing gem with 'gem install -v=1.2.6 rails', or
    change environment.rb to define RAILS_GEM_VERSION with your desired version.

エラーになる。
$rails -v
Rails 1.2.6
にも関わらず。。。上記のように

monote$ gem install -v=1.2.6 rails
WARNING:  Installing to ~/.gem since /opt/local/lib/ruby/gems/1.8 and
	  /opt/local/bin aren't both writable.
WARNING:  You don't have /Users/monote/.gem/ruby/1.8/bin in your PATH,
	  gem executables will not run.
Successfully installed rake-0.8.4
Successfully installed activesupport-1.4.4
Successfully installed activerecord-1.15.6
Successfully installed actionpack-1.13.6
Successfully installed actionmailer-1.3.6
Successfully installed actionwebservice-1.2.6
Successfully installed rails-1.2.6
7 gems installed
Installing ri documentation for rake-0.8.4...
Installing ri documentation for activesupport-1.4.4...
Installing ri documentation for activerecord-1.15.6...
Installing ri documentation for actionpack-1.13.6...
Installing ri documentation for actionmailer-1.3.6...
Installing ri documentation for actionwebservice-1.2.6...
Installing RDoc documentation for rake-0.8.4...
Installing RDoc documentation for activesupport-1.4.4...
Installing RDoc documentation for activerecord-1.15.6...
Installing RDoc documentation for actionpack-1.13.6...
Installing RDoc documentation for actionmailer-1.3.6...
Installing RDoc documentation for actionwebservice-1.2.6...
monote$ ruby script/server
./script/../config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-04-04 21:47:17] INFO  WEBrick 1.3.1
[2009-04-04 21:47:17] INFO  ruby 1.8.7 (2008-08-11) [i686-darwin9]
[2009-04-04 21:47:17] INFO  WEBrick::HTTPServer#start: pid=400 port=3000

にて
http://localhost:3000/
動作しているかどうか確認する。