How robson-m/system-gym works
This is a Rails gym-management application: its routes expose student, payment, plan, gym, account, settings, turnstile, and statistics workflows. The clearest sampled workflow is creating a student, recording an initial payment, and running a due-date check. Student and payment records are persisted through Active Record, with plans supporting both workflows. The map preserves documented route branches and sampled browser behavior; controller internals for several routes and views were not provided, so those connections are limited to route dispatch.
Main entry points: routes.rb Rails routes · students_controller.rb Student management · payments_controller.rb Payment management · plan.rb Plan records
Components 19
Web entry
- Rails routes
config/routes.rb
Gym operations
- Student management
app/controllers/students_controller.rb - Payment management
app/controllers/payments_controller.rb - Plan management
app/controllers/plans_controller.rb - Turnstiles
app/controllers/turnstiles_controller.rb - Due-date check
app/jobs/check_due_dates_job.rb
Accounts and insights
- Gym settings
app/controllers/gyms_controller.rb - Settings
app/controllers/settings_controller.rb - Statistics
app/controllers/statistics_controller.rb - User administration
app/controllers/users_controller.rb - Account registration
app/controllers/users/registrations_controller.rb
Domain records
- Student records
app/models/student.rb - Payment records
app/models/payment.rb - Plan records
app/models/plan.rb - Gym records
app/models/gym.rb - User records
app/models/user.rb
Browser interactions
- Student list filters
app/javascript/controllers/filter_controller.js - Search submission
app/javascript/controllers/search_controller.js
Other components
- Web user
Connections 18
- Web user → Rails routes: requests pages
- Rails routes → Student management: routes root
config/routes.rb - Rails routes → Payment management: routes nested payments
config/routes.rb - Rails routes → Plan management: routes plans
config/routes.rb - Rails routes → Gym settings: routes gyms
config/routes.rb - Rails routes → Settings: routes settings
config/routes.rb - Rails routes → Statistics: routes statistics
config/routes.rb - Rails routes → Turnstiles: routes turnstiles
config/routes.rb - Rails routes → User administration: routes users
config/routes.rb - Rails routes → Account registration: routes registration
config/routes.rb - Student management → Student records: queries and saves
app/controllers/students_controller.rb - Student management → Payment records: creates initial payment
app/controllers/students_controller.rb - Student management → Plan records: loads plans
app/controllers/students_controller.rb - Student management → Due-date check: runs check
app/controllers/students_controller.rb - Payment management → Payment records: builds and updates
app/controllers/payments_controller.rb - Payment management → Student records: loads student
app/controllers/payments_controller.rb - Payment management → Plan records: loads plans
app/controllers/payments_controller.rb - Plan management → Plan records: creates and updates
app/controllers/plans_controller.rb