Muchas gracias por la respuestas
usé en rails 2.3.+

>> my_file = File.new("/home/gustavo/temp/foo.log", "a")
=> #<File:/home/gustavo/temp/foo.log>
>> @cat.each {|e| my_file.puts "#{e.id} #{e.parent_id} #{e.name} "}.sort_by(:id)
>> my_file.close

-- 
gustavo c
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a