Railsアプリの作成のメモ
Ruby 及びRuby on Railsのインストールはこちら
Postgresのインストールはこちら
$ rails new sample -BCMT --skip-coffee -d postgresql
$ cd sample $ bundle lock --add-platform x64-mingw32 x86-mingw32 $ bundle install
データベースへの接続設定を変更
vi config/database.yml
「development:」の部分に以下を追加する
development: adapter: postgresql encoding: unicode database: rails_dev pool: 5 username: rails_user password: host: localhost
bin/rails s
http://localhost:3000/