From 3e6af8a93b16207b9c0d3ef3fcb2bf4679c3e31d Mon Sep 17 00:00:00 2001 From: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Date: Sun, 26 Jan 2025 07:00:07 -0800 Subject: [PATCH] rails-new: add page (#15607) --- pages/common/rails-new.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/rails-new.md 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`