./script/console - disabling "records found.inspect"?


#1

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


#2

Item.find(:all).each do |item|
puts item.title
end ; nil

Really!
Well, you do have to put up with the:
=> nil
But I find that acceptable :wink:

-Rob

Rob B. http://agileconsultingllc.com
removed_email_address@domain.invalid
+1 513-295-4739