github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

collectiveidea / calendar_builder

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 44
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • refactoring
  • Tags (0)
Sending Request…
Click here to lend your support to: calendar_builder and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

More timezone updates 
danielmorrison (author)
Wed Sep 30 08:29:59 -0700 2009
commit  99d64a9e9d57b6865358e2555369c0d7c9eabea5
tree    cd895eb72147eb445f780a64cee7e99150749543
parent  b9df1622fbf4952efc626888aec77847b6fe8dd8
calendar_builder /
name age
history
message
file .gitignore Tue Feb 26 13:27:00 -0800 2008 Cleaned up and tested the event finders. [danielmorrison]
file README.rdoc Wed Oct 29 12:19:50 -0700 2008 Hopefully made README more rdoc'ish [jaknowlden]
file Rakefile Wed Feb 13 21:36:34 -0800 2008 added javascript and css assets setup JS tests [brandon]
directory assets/ Wed Feb 13 21:36:34 -0800 2008 added javascript and css assets setup JS tests [brandon]
file init.rb Loading commit data...
directory lib/ Wed Sep 30 08:30:40 -0700 2009 More timezone updates [danielmorrison]
directory test/ Wed Sep 30 08:30:40 -0700 2009 More timezone updates [danielmorrison]
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)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server