Ruby IDE のインストール Windows
移転しました。
CentOS上でRubyのコーディングをemacsで行ってみたが、どうも自分にはなじめない。。
ということでWindowsでの開発はどんなものか試してみることにした。
Windowsで開発するならIDEでしょう、ということでRadRailsを使ってみる。
Aptanaなるものを落として、その後、RadRailsをインストールする。
RDTもついでに落としてインストールしてみることにした。
(というか自動的にインストールされてしまう)
Apanta インストール
以下サイトからダウンロードする。
http://www.radrails.org/
自分が落としたバージョンは、1.0.0
Apanta自身がEclipseを拡張してRubyのプラグインを入れたものらしい。
落としてきたexeを実行して画面の指示に従いインストール
RadRailsプラグインインストール
Apantaを起動して、上記メニューバーより
Help - Start Aptana Start Page
を選択して、スタートページを表示する。
その後、LanguagesタブのRuby on Railsのinstallボタンを押して、インストール
このとき、RadRailsとRDTの二つがインストールされる。
Postgresのインストール
自分のWindows環境では、MySQLが無く、Postgresのみインストールしているので、こちらのアダプタをインストールする
gem install postgres-pr
database.yml修正
adapterを修正
development: adapter: postgresql database: hello_development username: shohu password: hoge host: localhost encoding: utf8
ユーザー追加
$ createuser -U postgres shohu Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) n createuser: could not connect to database postgres: FATAL: role "shohu" does not exist $ psql hello_development > alter user "shohu" password 'hoge'