How to make Event Calendar in rails 3.0?
First of all, make sure that we have installed event_calendar plugin :
As a gem:
gem install event-calendar
Add this to your Gemfile:
gem 'event-calendar', :require => 'event_calendar'
Or as a plugin:
rails plugin install git://github.com/elevation/event_calendar.git To generate the necessary static files AND the example below:
rails generate event_calendar
You can change the default event model name (Event) and controller/view name (Calendar) by passing in two name arguments:
rails generate event_calendar EventModel Calendars
The EventCalendar plugin is only concerned with displaying events. (Or really any model as long as it has name, start_at, and end_at fields.) How they are created is entirely up to
you. It does include a generator to get you up and running, but
doesn’t go as far…
View original post 32 more words