mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
rails-console: add page (#15608)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
3e6af8a93b
commit
b3793a45fe
1 changed files with 20 additions and 0 deletions
20
pages/common/rails-console.md
Normal file
20
pages/common/rails-console.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# rails console
|
||||
|
||||
> Interact with a Rails application.
|
||||
> More information: <https://guides.rubyonrails.org/command_line.html#bin-rails-console>.
|
||||
|
||||
- Start the Rails console:
|
||||
|
||||
`rails console`
|
||||
|
||||
- Start the Rails console and roll back all data modifications on exit:
|
||||
|
||||
`rails console --sandbox`
|
||||
|
||||
- Start the Rails console on a specified environment:
|
||||
|
||||
`rails console --environment {{dev|test|production|...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`rails console --help`
|
Loading…
Add table
Reference in a new issue