mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 22:22:18 +02:00

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
20 lines
444 B
Markdown
20 lines
444 B
Markdown
# 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`
|