diff --git a/pages/common/rails-new.md b/pages/common/rails-new.md new file mode 100644 index 0000000000..c7190e0df8 --- /dev/null +++ b/pages/common/rails-new.md @@ -0,0 +1,24 @@ +# rails new + +> Create a new Rails application. +> More information: . + +- Create a Rails app named `blog` in the current directory: + +`rails new blog` + +- Create a Rails app with API-only configuration: + +`rails new {{app_name}} --api` + +- Create a Rails app with `postgresql` as the database: + +`rails new {{app_name}} --database postgresql` + +- Create a Rails app without generating JavaScript files: + +`rails new {{app_name}} --skip-javascript` + +- Display help: + +`rails new --help`