mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
444 B
Markdown
21 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`
|