watu/table_builder — pull request #7 by samitheberber (2012-05-10 13:47:38+00:00)
Title: Rails 2.3 compatible

This adds support for rails 2.3 and ruby 1.8.7.

The only difference between rails 3 is that you can only direct output caller method, but just execute inner block methods. Feel free to contribute this pull request, if you know how to make this equal with rails 3.

= calendar_for(@tasks) do |t|
= t.head('m', 't', 'w', 't', 'f', 's', 's')
- t.day do |day, task|
= day.day
- tasks.each do |task|
= h task.inspect