p8 / table_builder

Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.
186 stars 77 forks source link

passing :id to day() - can id be based on the collection #10

Open chewmanfoo opened 13 years ago

chewmanfoo commented 13 years ago

This is what I need to achieve:

<% calendar.day(:day_method => :target_date,:id => !blackouts.empty? ? "blackout" : "") do |date, blackouts| %>

I know that's referencing blackouts before blackouts is created. How would one do this?

Thanks in advance!