Forum: Ruby on Rails ./script/console - disabling "records found.inspect"?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Joe (Guest)
on 2006-04-05 06:48
How do I disable console's default behavior of automatically outputting
what appears to be an inspect of all records found? For example:

>> Item.find(:all).each do |item|
>>   puts item.title
>> end
# bunch of text outputted that shows the contents of all fields in all

Rob B. (Guest)
on 2006-04-07 05:03
(Received via mailing list)
Item.find(:all).each do |item|
   puts item.title
end ; nil

Well, you do have to put up with the:
=> nil
But I find that acceptable ;-)


Rob B.
+1 513-295-4739
This topic is locked and can not be replied to.