Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme error in calendar_for example #3

Open
alexfeseto opened this issue Jul 6, 2010 · 0 comments
Open

Readme error in calendar_for example #3

alexfeseto opened this issue Jul 6, 2010 · 0 comments

Comments

@alexfeseto
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant