Skip to content

Commit

Permalink
Merge pull request #49338 from jean-francois-labbe/document-rails-new…
Browse files Browse the repository at this point in the history
…-with-specific-version

[ci skip] Document how to rails new with a specific version
  • Loading branch information
carlosantoniodasilva committed Sep 21, 2023
2 parents 23f130c + 90d5a5c commit c864a37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions railties/lib/rails/generators/rails/app/USAGE
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ Description:
Note that the arguments specified in the .railsrc file don't affect the
default values shown above in this help message.

You can specify which version to use when creating a new rails application
using `rails _<version>_ new`.

Examples:
`rails new ~/Code/Ruby/weblog`

This generates a new Rails app in ~/Code/Ruby/weblog.

`rails _<version>_ new weblog`

This generates a new Rails app with the provided version in ./weblog.

`rails new weblog --api`

This generates a new Rails app in API mode in ./weblog.
Expand Down

0 comments on commit c864a37

Please sign in to comment.