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

1

12

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

Beefburger answered 28/7, 2012 at 23:29 Comment(4)
When Pry opens up the irb, type in "exit"Darladarlan
For those who come to this page looking for your own answers: CTRL + CStarfish
#15958646Principality
Press "q" as described here: #15958646Principality
P
19

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

Popovich answered 29/7, 2012 at 1:3 Comment(2)
I've been looking for this very answer for weeks. I had gotten into the habit of just opening a new terminal window whenever it would get stuck.Urticaria
The gift that keeps on giving. :)Parity

© 2022 - 2024 — McMap. All rights reserved.