# sudhirsb2003/rails3_fullcalendar architecture

> Architecture diagram of the GitHub repository sudhirsb2003/rails3_fullcalendar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sudhirsb2003/rails3_fullcalendar
- Repository: https://github.com/sudhirsb2003/rails3_fullcalendar

## Overview

This is a Rails 3 example integrating a browser calendar with REST-style event management. The main workflow is to open the calendar, request events for the displayed time range, and render them; users can also create, edit, and delete events through Rails views and controller actions. FullCalendar and jQuery REST are documented client capabilities. The excerpts establish routing and controller-to-model behavior, but do not show the calendar template or client initialization, so those links are limited to documented relationships.

Main entry points: [`app/controllers/events_controller.rb`](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/controllers/events_controller.rb) (Events controller), [`public/javascripts/calendar.js`](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/calendar.js) (Calendar setup), [`public/javascripts/jquery.rest.js`](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/jquery.rest.js) (jQuery REST), [`config/routes.rb`](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/config/routes.rb) (Routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Calendar client"]
  node_fullcalendar["FullCalendar<br/>[fullcalendar.js]"]
  node_calendar_js["Calendar setup<br/>[calendar.js]"]
  node_jquery["jQuery<br/>[jquery.js]"]
  node_jquery_rest["jQuery REST<br/>[jquery.rest.js]"]
  node_calendar_view["Calendar page<br/>[index.html.erb]"]
end

subgraph group_routing["Rails request routing"]
  node_routes["Routes<br/>[routes.rb]"]
  node_calendar_controller["Calendar controller"]
end

subgraph group_events["Event management"]
  node_events_controller["Events controller"]
  node_event_views["Event pages"]
end

subgraph group_storage["Event storage"]
  node_event_model["Event model<br/>[event.rb]"]
  node_event_database[("Event records")]
end

node_visitor(("Calendar user"))

node_visitor -.->|"opens calendar"| node_routes
node_routes -->|"routes calendar"| node_calendar_controller
node_routes -->|"routes events"| node_events_controller
node_calendar_controller -.->|"renders page"| node_calendar_view
node_calendar_view -.->|"configures calendar"| node_calendar_js
node_calendar_js -.->|"uses plugin"| node_fullcalendar
node_calendar_js -.->|"requests events"| node_jquery_rest
node_jquery_rest -->|"extends AJAX"| node_jquery
node_jquery_rest -.->|"calls REST API"| node_events_controller
node_events_controller -->|"queries and updates"| node_event_model
node_events_controller -->|"renders pages"| node_event_views
node_event_model -.->|"persists records"| node_event_database

click node_fullcalendar "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/fullcalendar.js"
click node_calendar_js "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/calendar.js"
click node_jquery "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/jquery.js"
click node_jquery_rest "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/jquery.rest.js"
click node_routes "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/config/routes.rb"
click node_calendar_controller "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/controllers/calendar_controller.rb"
click node_calendar_view "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/views/calendar/index.html.erb"
click node_events_controller "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/controllers/events_controller.rb"
click node_event_views "https://github.com/sudhirsb2003/rails3_fullcalendar/tree/master/app/views/events"
click node_event_model "https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/models/event.rb"
click node_event_database "https://github.com/sudhirsb2003/rails3_fullcalendar/tree/master/db"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fullcalendar,node_calendar_js,node_jquery,node_jquery_rest,node_calendar_view,node_visitor toneBlue
class node_routes,node_calendar_controller toneAmber
class node_events_controller,node_event_views toneMint
class node_event_model,node_event_database toneRose
```

## Components

### Calendar client

- [FullCalendar](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/fullcalendar.js): `public/javascripts/fullcalendar.js`
- [Calendar setup](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/calendar.js): `public/javascripts/calendar.js`
- [jQuery](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/jquery.js): `public/javascripts/jquery.js`
- [jQuery REST](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/public/javascripts/jquery.rest.js): `public/javascripts/jquery.rest.js`
- [Calendar page](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/views/calendar/index.html.erb): `app/views/calendar/index.html.erb`

### Rails request routing

- [Routes](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/config/routes.rb): `config/routes.rb`
- [Calendar controller](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/controllers/calendar_controller.rb): `app/controllers/calendar_controller.rb`

### Event management

- [Events controller](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/controllers/events_controller.rb): `app/controllers/events_controller.rb`
- [Event pages](https://github.com/sudhirsb2003/rails3_fullcalendar/tree/master/app/views/events): `app/views/events`

### Event storage

- [Event model](https://github.com/sudhirsb2003/rails3_fullcalendar/blob/master/app/models/event.rb): `app/models/event.rb`
- [Event records](https://github.com/sudhirsb2003/rails3_fullcalendar/tree/master/db): `db`

### Other components

- **Calendar user**

## Connections

- Calendar user → Routes: opens calendar (evidence: `README`)
- Routes → Calendar controller: routes calendar (evidence: `config/routes.rb`)
- Routes → Events controller: routes events (evidence: `config/routes.rb`)
- Calendar controller → Calendar page: renders page
- Calendar page → Calendar setup: configures calendar
- Calendar setup → FullCalendar: uses plugin (evidence: `README`)
- Calendar setup → jQuery REST: requests events (evidence: `README`)
- jQuery REST → jQuery: extends AJAX (evidence: `public/javascripts/jquery.rest.js`)
- jQuery REST → Events controller: calls REST API (evidence: `README`)
- Events controller → Event model: queries and updates (evidence: `app/controllers/events_controller.rb`)
- Events controller → Event pages: renders pages (evidence: `app/controllers/events_controller.rb`)
- Event model → Event records: persists records
