Last active
June 16, 2020 10:33
-
-
Save wilsonsilva/e27dc2de4a5f66082e3ffc87ec6d9f62 to your computer and use it in GitHub Desktop.
Install and use gem in production rails console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install the gem | |
| `gem install hirb` | |
| # Find the gem's location | |
| gem_path = ENV['GEM_HOME'] + '/gems/hirb-0.7.3/lib' | |
| $: << gem_path | |
| # Require it | |
| require 'hirb' | |
| # Use it | |
| extend Hirb::Console | |
| table Record.all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment