Prototype to manage events for an agenda in Rails