I’m using the awesome_print to prettify objects to print.
But when I use it for many objects, I can’t see all of them because they are too many to display in terminal scroll.
I would like to use a pager like less in rails console. Is there a way?
I’m using the awesome_print to prettify objects to print. But when I use it
Share
The Hirb gem solves just that
usage example:
after enabling it inside the console, when printing large data, it will automatically pipe it through
lessIt also has a menu creation feature that might be useful for you in those situations. More info here