A gem to integrate fullcalendar jQuery plugin with Rails. The goal is to let you have a great calendar in Rails within seconds.
This is based on Fullcalendar - arshaw.com/fullcalendar/
Some code from fullcalendar_rails - github.com/vinsol/fullcalendar_rails
And some ideas from event_calendar gem - rubygems.org/gems/event_calendar
gem install thatguy-heyday –source gems.github.com
Install ruby and ruby gems
Install Rails 3
sudo gem install rails
Create a new rails app
rails new my_scheduler
Add heyday to your Gemfile
gem 'heyday', :require => 'heyday'
'model_name' let's you set the name of the event model to use. If you leave it blank, no model will be created in that case you just need to add a line to your existing model: calendar_displayable :start_at_field => 'custom_start_at', :end_at_field => 'custom_end_at'
–model_name=xyz 'jquery' option will install jquery. Use this if you don't already have jquery in your project
–jquery 'layout' option will install a layout that includes the necessary js and css files
'create_controller' will create a controller to handle getting, creating, and updating events. Leave this out if you have another controller you want to use.
'controller_name' let's you set the name of the controller if heyday is creating it for you. If heyday is not creating it for you, there is no need to send in this option. If heyday is creating it for you and you don't specify a name, it will be named based on the model.
rails generate heyday:install –model_name=event –jquery –layout –create_controller
Migrate to add the event model (or whatever you named it)
rake db:migrate Start the server
View the calendar open localhost:3000/events
To use in your own model: In an active record model call: 'heyday' to allow the model to be displayed in the calendar
class MyEvent < ActiveRecord::Base calendar_displayable end
Build this gem with
gem build heyday.gemspec Install with