mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
rails-new: add page (#15607)
This commit is contained in:
parent
7fd944e3a8
commit
3e6af8a93b
1 changed files with 24 additions and 0 deletions
24
pages/common/rails-new.md
Normal file
24
pages/common/rails-new.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# rails new
|
||||
|
||||
> Create a new Rails application.
|
||||
> More information: <https://guides.rubyonrails.org/command_line.html#rails-new>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue