Update cheatsheets

This commit is contained in:
ivuorinen
2025-01-27 00:17:46 +00:00
parent 463eefab17
commit 08ccd9d6a2
3 changed files with 83 additions and 0 deletions

25
tldr/rails-console Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`