Created
May 12, 2014 01:21
-
-
Save excid3/72f326362cf3d026e243 to your computer and use it in GitHub Desktop.
New simple_calendar examples for 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# Set the beginning_of_week %> | |
<%= Date.beginning_of_week = :sunday %> | |
<%= month_calendar do |day| %> | |
<%= day %> | |
<% end %> | |
<hr /> | |
<%= week_calendar params[:day], number_of_weeks: 2 do |day| %> | |
<%= day %> | |
<% end %> | |
<hr /> | |
<%= agenda_calendar params[:day], number_of_days: 4 do |day| %> | |
<%= day %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment