Eclipse + RadRails
Rails の勉強をはじめました。
- 作者: arton
- 出版社/メーカー: 翔泳社
- 発売日: 2008/04/15
- メディア: 大型本
- 購入: 6人 クリック: 113回
- この商品を含むブログ (40件) を見る
本では Rails の IDEとして、 Aptana RadRails を使用。
http://www.aptana.com/rails
私は Eclipse のプラグインを導入した。
- 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/
適当に進むとひとまずプラグイン導入完了。
- Eclipse の設定
- Ruby の設定
「Window」→「Preferences」の左のツリーリストの「▽Ruby」を展開。
「Installed Interpreters」から「Add」で Ruby のインストールディレクトリを指定する。
私の場合だとusr/lib/ruby/1.8
- Rails の設定
「▽ Rails」を展開して「Confuguration」のページを開く。
railspath を入力。mongrel 入ってる場合は mongrel_rails path も指定。
私の場合だと/var/lib/gems/1.8/gems/rails-1.2.6/bin/rails
できたできた。