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.
Written by Marcelo G. Cajueiro
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#