Ruby on Rails Naming Conventions
Routes - lowercase, with underscores as needed between words
Controllers - CamelCase, plural, and append the word "Controller" at the end.
Model Class - Singular with the first letter of each word capitalized (e.g., BookClub).
Database Table - Plural with underscores separating words (e.g., book_clubs).
Scaffolding Example
rails g scaffold MasterGrant community_goal:string funding_source:string fund_name_type:string area_of_focus:string oversight_department:string oversight_division:string entity_name:string program_project_name:string fy2019_20:string fy2020_21:string fy2021_22:string total_funding_investment:string dashboard_status:string tag:string notes:string
New Comment