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/.
Rob Biedenharn
2006-Apr-07 01:02 UTC
[Rails] ./script/console - disabling "records found.inspect"?
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@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@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails