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

febuiles / cute_calendar

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

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

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

A Rails plugin to generate nice calendars. — Read more

  cancel

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

This URL has Read+Write access

Updating TODO list. 
febuiles (author)
Tue Dec 23 18:05:24 -0800 2008
commit  c1d5aeac5907933206a97c408713d77a95be58d6
tree    355fa4083bb384afcfbecdbefe73d1c5ca306e79
parent  cd0615ab2135e631a9ed19db69223b118b58ce98
cute_calendar /
name age
history
message
file .gitignore Tue Dec 02 08:31:09 -0800 2008 No need to scope this under a module so far. [febuiles]
file CONTRIBUTORS Tue Dec 02 17:34:57 -0800 2008 Moving contributors to their own file. [febuiles]
file MIT-LICENSE Tue Nov 25 10:48:41 -0800 2008 Initial plugin structure. [febuiles]
file README.markdown Tue Dec 23 18:05:24 -0800 2008 Updating TODO list. [febuiles]
file Rakefile Tue Dec 02 10:11:36 -0800 2008 Removing the generators, fixing the Rakefile. [febuiles]
directory generators/ Mon Dec 22 08:27:32 -0800 2008 New query to make things easier on the database. [febuiles]
file init.rb Tue Dec 02 19:10:40 -0800 2008 Adding a partial to render the calendar. [febuiles]
file install.rb Tue Dec 23 18:00:57 -0800 2008 Removing old partial. [febuiles]
directory lib/ Tue Dec 23 18:00:57 -0800 2008 Removing old partial. [febuiles]
directory tasks/ Tue Nov 25 10:48:41 -0800 2008 Initial plugin structure. [febuiles]
directory test/ Tue Dec 02 15:52:49 -0800 2008 Fixing tests. [febuiles]
file uninstall.rb Tue Dec 23 18:03:25 -0800 2008 Adding an uninstall.rb script. [febuiles]
README.markdown

CuteCalendar

CuteCalendar is a Rails plugin to help you build calendars using topfunky's calendar_helper and defunkt's facebox. You fill in with some events and we'll do all the dirty work of making it cute.

Contributors

This plugin is based on the work of several awesome people, please read the CONTRIBUTORS file.

Install

Download the plugin

$ ./script/plugin install git://github.com/febuiles/cute_calendar.git

Run the Events generator

$ ./script/generate events

Migrate your database:

$ rake db:migrate

With this version you'll need to create a controller and some views to populate your Events table:

$ ./script/generate scaffold Event title:string description:text date:date

Example

Insert the calendar in your view:

<%= calendar :year => 2008, :month => 12 %>

If you want to use any of the custom stylesheets you can pass it as an option:

<%= calendar :year => 2008, :month => 12, :style => "grey" %>

These stylesheets can be found in public/stylesheets/calendar

Known Issues

If you already have an Events model you'll run into problems unless the model contains the following fields:

title:string
description:string/text
date:date

If you have these then you can skip the generator in the installation and everything should work fine.

Todo

  • Do something to avoid inserting stylesheets in the middle of the page (calendar_helper.rb:103)
  • Add a generator for a simple event creation interface.

Copyright

Copyright (c) 2006-2008 Jeremy Voorhis, Geoffrey Grosenbach and Chris Wanstrath
Copyright (c) 2008 Federico Builes, released under the MIT license

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