This is just a small script to bootstrap Rails new application generation process.
Reason, why I don't use rails new
as it is, because I don't want Rails to be installed at all :)
What I really wanted to have is a way to create Rails application without installing Rails system-wide.
Typical configuration is done with rbenv ( to manage and install ruby ) and bundler ( which is the only gem I need to install manually system-wide ).
If the command below works, then it is possible to use the script.
$: gem list --local | grep bundler
bundler (1.3.5)
Typically I have my own scripts at $HOME/bin:
$: curl --output $HOME/bin/create_rails_app "https://gist.githubusercontent.com/denvazh/9824119/raw/63e857a8eae056834f6a1194335ca794935d29d9/create_rails_app"
Create new Rails application in current directory
$: create_rails_app MyApp
Create new Rails application with specific version
$: create_rails_app MyApp 3.0.0