p8 / table_builder

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

Readme error in calendar_for example #3

Open alexfeseto opened 14 years ago

alexfeseto commented 14 years ago

The first calendar_for example in the readme will output a misleading / inaccurate calendar, owing to the default value of first_day_of_week being 0 (i.e. Sunday).

I think the doc should either read: <%= t.head('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat') %>

Or show the first_day_of_week symbol being passed: <% calendar_for(@tasks, :first_day_of_week => 1) %>