This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Feb 26 13:27:00 -0800 2008 | |
| |
README.rdoc | Wed Oct 29 12:19:50 -0700 2008 | |
| |
Rakefile | Wed Feb 13 21:36:34 -0800 2008 | |
| |
assets/ | Wed Feb 13 21:36:34 -0800 2008 | |
| |
init.rb | Thu Feb 28 09:23:19 -0800 2008 | |
| |
lib/ | Wed Sep 30 08:30:40 -0700 2009 | |
| |
test/ | Wed Sep 30 08:30:40 -0700 2009 |
README.rdoc
CalendarBuilder
CalendarBuilder does a couple things
- Builds calendars for the view
- Adds event finders to your event models
Building Calendars
Add docs here. Please.
Event Finders
Assuming you have an event model with some sort of begin_at and end_at, you can use all these finders:
Event.upcoming Event.on_date(date) Event.in_month(date) Event.in_date_range(date1..date2) Event.in_rolling_month(date, number_of_weeks) Event.in_month_with_outliers(date)
If your event model is an association unto some other model, like a Community for instance, you can do the following:
community = Community.find(1) comunity.events.upcoming comunity.events.on_date(date) comunity.events.in_month(date) comunity.events.in_date_range(date1..date2) comunity.events.in_rolling_month(date, number_of_weeks) comunity.events.in_month_with_outliers(date)
ToDo
- Extract CSS classes into options (month, day, weekend, other_month)








