Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails console pry/irb "stuck" after displaying long value/string

I am developing with rails on a mac using the rails console via pry/irb.

When I display a long result in the console ie. Model.all or .really_long_string, I cant seem to get past the string or value that is displayed and the console displays "(END)" at the end of the console.

What command do I use to get past this so I can continue entering ruby statements on the console without having to close the terminal window?

I recently discovered Ctrl Z to close the console, but I assume there is a better way

like image 470
koa Avatar asked Jul 28 '12 23:07

koa


1 Answers

Looks likes the END is made by a pager. Have u tried typing "q"?

like image 188
Benjamin Tan Wei Hao Avatar answered Jan 01 '23 23:01

Benjamin Tan Wei Hao