You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 as creating the event controller and views. For that
you could run the following Rails scaffold:
script/generate scaffold Event start_at:datetime end_at:datetime
This will give you the controller and views you're looking for.
The calendar_controller needs to have the strips instance variable changed to the model you are trying to display @event_strips = Shift.event_strips_for_month(@shown_month)
# Changes the colorsdefcolorifself.name == "A Shift"self[:color] || '#C10000'elsifself.name == "B Shift"self[:color] || '#0C0882'elseself[:color] || '#08820A'endend