Options (3)
-d, --databasebooleanCreate a Rails app with `postgresql` as the database
Example:
rails new {{app_name}} {{[-d|--database]}} postgresql-J, --skip-javascriptbooleanCreate a Rails app without generating JavaScript files
Example:
rails new {{app_name}} {{[-J|--skip-javascript]}}-h, --helpbooleanDisplay help
Example:
rails new {{[-h|--help]}}Examples (5)
Create a Rails app named `blog` in the current directory
rails new blogCreate a Rails app with API-only configuration
rails new app_name --apiCreate a Rails app with `postgresql` as the database
rails new app_name [-d|--database] postgresqlCreate a Rails app without generating JavaScript files
rails new app_name [-J|--skip-javascript]Display help
rails new [-h|--help]made by @shridhargupta | data from tldr-pages