Skip to content

Commit

Permalink
rails-console: add page (#15608)
Browse files Browse the repository at this point in the history
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
  • Loading branch information
3 people authored Jan 26, 2025
1 parent 3e6af8a commit b3793a4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pages/common/rails-console.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit b3793a4

Please sign in to comment.