public
Description: A Rails plugin to generate nice calendars.
Homepage:
Clone URL: git://github.com/febuiles/cute_calendar.git
name age 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