LoginSignup
3
3

More than 5 years have passed since last update.

bundlerでrails 4.0.0.beta1を使い始める

Posted at

Ruby環境にはbundlerが入った状態で:

  • git init
  • bundle init
  • vim Gemfile
    source 'https://rubygems.org'
    gem 'rails', '4.0.0.beta1'
  • bundle install --path vendor/bundle
  • bundle exec rails new . -T
    • -Tはrspecつかうため
    • APP_PATHに . を指定すると、今居るディレクトリの名前がアプリケーションのクラス名に使われるので注意
    • 例: rails4 => Rails4::Application
    • Gemfileの上書きを聞かれるのでy
  • .gitignoreにvendor/bundleを追加
    /.bundle
    /vendor/bundle

    /db/*.sqlite3
    /db/*.sqlite3-journal

    /log/*.log
    /tmp
  • git add .
  • git commit -m 'new project'
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3