Last Updated: February 25, 2016
·
797
· marcelocajueiro

Running a command in the rails console without output

I always use the Rails Console in heroku apps or via SSH, and when the output of a command is too large, the terminal spend a great time just to print.

To avoid that just put a semicolon and a nil in the end, like this:

@ids = User.pluck(:id); nil

Be happy without a fucking giant output.