How to reduce the output of a Rails console?

When working with a Rails console to run some scripts on a database or similar, the default output of all the database queries and command results can be quite a lot and can slow down the processing considerably. Not to mention that it also can severely limit the readability of what your script outputs … .

Here is a solution, at least almost complete:

  1. Disable Rails 3.1 SQL logging (temporarily at least)
  2. Make the irb return value output to be always “nil”.

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.