I want to use awesome print without putting it in my rails 5 app. Just in the console. The documentation for requiring it in irb is not working.
How do I get awesome_print to work without using ~/.irbrc file?
861 views Asked by CJ Jean At
2
That's because bundler isolates the gems available to load to what's in your
Gemfile.The best way to get around this is to add the gem to your
GemfileAnd in your
.irbrc, you canrequireit, so that it is only enabled for you:However, if you aren't permitted to add awesome_print to your repository for whatever reason, there are a few hacks to get gems installed, but not in your
Gemfileto load in this GitHub Gist.One such example that could be placed at the top of your
.irbrc: