Skip to content

Instantly share code, notes, and snippets.

@KentaKomai
Created July 4, 2013 05:11
Show Gist options
  • Save KentaKomai/5925054 to your computer and use it in GitHub Desktop.
Save KentaKomai/5925054 to your computer and use it in GitHub Desktop.
railsで指定したバージョンでアプリケーションを作成する

新規作成

  1. gemfileの作成
  2. $ bundle install --path vendor/bundle
  3. $ bundle exec rails new example --skip-bundle

セットアップ

  1. $ bundle install --path vendor/bundle
  2. $ bundle exec rails server

Ruby環境に入ってるGemのリセット

$ rbenv exec gem list | awk '{print "rbenv exec gem uninstall " $1}' | sh -xv


template

source "http://rubygems.org" gem "rails", "rails version"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment