Eclipse + RadRails

Rails の勉強をはじめました。

10日でおぼえる Ruby on Rails入門教室

10日でおぼえる Ruby on Rails入門教室


本では RailsIDEとして、 Aptana RadRails を使用。
http://www.aptana.com/rails
私は Eclipseプラグインを導入した。

バージョンは3.2推奨。
http://www.eclipse.org/

Eclipse を起動して、「Help」→「Software Updates」→「Find and Install」
「Search for new features to install」を選んで「NEXT」


「NewRemoteSite」で以下を入力
name : RadRails
URL : http://update.aptana.com/install/rails/3.2/

適当に進むとひとまずプラグイン導入完了。

  1. Ruby の設定

「Window」→「Preferences」の左のツリーリストの「▽Ruby」を展開。
「Installed Interpreters」から「Add」で Ruby のインストールディレクトリを指定する。
私の場合だとusr/lib/ruby/1.8

  1. Rails の設定

「▽ Rails」を展開して「Confuguration」のページを開く。
railspath を入力。mongrel 入ってる場合は mongrel_rails path も指定。

私の場合だと/var/lib/gems/1.8/gems/rails-1.2.6/bin/rails


できたできた。