Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (16 sloc) 0.279 kb
#!/bin/sh
[ -n "$1" ] || {
echo "usage: rails-new <app path>"
exit 1
}
set -e
trap 'rm -rf "$1"' ERR INT TERM
mkdir -p "$1"
cd "$1"
git init
cat >Gemfile <<EOS
source "https://rubygems.org"
gem "rails"
EOS
bundle --path .bundle
bundle exec rails new . -f --skip-spring
Jump to Line
Something went wrong with that request. Please try again.