From b3793a45fecd318b1da2e1b3d1ef3185be14e569 Mon Sep 17 00:00:00 2001 From: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:17:39 -0800 Subject: [PATCH] rails-console: add page (#15608) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages/common/rails-console.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/rails-console.md diff --git a/pages/common/rails-console.md b/pages/common/rails-console.md new file mode 100644 index 0000000000..8750a27e5e --- /dev/null +++ b/pages/common/rails-console.md @@ -0,0 +1,20 @@ +# rails console + +> Interact with a Rails application. +> More information: . + +- 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`