[Rails] ./script/console - disabling "records found.inspect"?

Joe joe at yahoo.com
Wed Apr 5 02:48:11 GMT 2006


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

Joe

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list