1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages/common/rails-console.md
Nelson Figueroa b3793a45fe
rails-console: add page (#15608)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-01-26 20:17:39 +01:00

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`