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”.

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

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