Skip to content

Readme error in calendar_for example #3

@alexfeseto

Description

@alexfeseto

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) %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions