[ruby-it] 100% cpu

Claudio Petasecca Donati cpetasecca a gmail.com
Lun 2 Mar 2009 12:21:21 CET


Hai provato con la StringIO ?

result = StringIO.new
result << %(<table>)
(9..19).each do |hour|
   result << %(<tr>)
   (0..6).each do |day|
     result << %(<td>#{ get_event(day, hour) }</td>)
   end
  result << %(</tr>)
end
result << %(</table>)
result.rewind

<%= result.read %>
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ml mailing list