Skip to content

Conversation

p8
Copy link
Member

@p8 p8 commented Oct 15, 2025

The help command in the Rails console shows which Rails specific commands are available and what they do.

Similar to bin/rails dbconsole (where database clients show a help hint), show a hint on how to use help when opening bin/rails console.

$ bin/rails console
Loading development environment (Rails 8.1.0.beta1)
Type 'help' for help.
example(dev):001>

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the railties label Oct 15, 2025
The help command in the Rails console shows which Rails specific
commands are available and what they do.

Similar to `bin/rails dbconsole` (where database clients show a help
hint), show a hint on how to use help when opening `bin/rails console`.

```
$ bin/rails console
Loading development environment (Rails 8.1.0.beta1)
Type 'help' for help.
example(dev):001>
```
@p8 p8 force-pushed the railties/console-help branch from 47f2a20 to e0ae228 Compare October 15, 2025 12:14
@eileencodes eileencodes merged commit 039cb87 into rails:main Oct 15, 2025
3 checks passed
@eileencodes
Copy link
Member

I actually had no idea I could type help into the console. It makes sense when I think about it, but not sure I have ever considered doing it before.

@p8 p8 deleted the railties/console-help branch October 15, 2025 15:15
@p8
Copy link
Member Author

p8 commented Oct 15, 2025

It's a somewhat recent addition by @st0012
ruby/irb#872

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants