Merge pull request #37471 from dzunk/update_templates_guide

[ci skip] Remove reference to legacy Rails 2.x command
This commit is contained in:
Richard Schneeman 2019-10-14 19:56:59 -05:00 committed by GitHub
commit 5cd99eb334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -235,10 +235,10 @@ CODE
### yes?(question) or no?(question)
These methods let you ask questions from templates and decide the flow based on the user's answer. Let's say you want to Freeze Rails only if the user wants to:
These methods let you ask questions from templates and decide the flow based on the user's answer. Let's say you want to prompt the user to run migrations:
```ruby
rails_command("rails:freeze:gems") if yes?("Freeze rails gems?")
rails_command("db:migrate") if yes?("Run database migrations?")
# no?(question) acts just the opposite.
```