[Rails] ./script/console - disabling "records found.inspect"?
Rob Biedenharn
Rob at AgileConsultingLLC.com
Fri Apr 7 01:02:25 GMT 2006
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 ;-)
-Rob
Rob Biedenharn http://agileconsultingllc.com
Rob at AgileConsultingLLC.com
+1 513-295-4739
On Apr 4, 2006, at 10:48 PM, Joe wrote:
> 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/.
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
More information about the Rails
mailing list