awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
bbatsov avatar

bbatsov/rails-style-guide

0
View on GitHub↗
rails.rubystyle.guide↗

Rails Style Guide

This project is a collection of community-driven coding standards and best practices for developing maintainable Ruby on Rails applications. It serves as a style guide, architecture reference, and development guide to ensure consistency across a codebase.

The guide provides technical recommendations for establishing naming conventions and architectural patterns. It specifically focuses on organizing models, controllers, and views to separate business logic from data persistence and user interface presentation.

The documentation covers a broad range of capabilities, including RESTful API design, database management for secure queries and reversible migrations, and the implementation of integration testing workflows. It also provides guidance on managing external dependencies, application configuration, and internationalization.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Coding Standards - Provides a comprehensive collection of coding standards and best practices to ensure a maintainable codebase.
  • Architectural Patterns - Establishes the foundational architecture for organizing models, controllers, and views in a Rails application.
  • Ruby Code Standardization - Defines consistent naming conventions and structural rules to ensure long-term maintainability of the codebase.
  • ActiveRecord Patterns - Provides architectural guidance on implementing the ActiveRecord pattern for data access and validation.
  • API Design Guides - Provides professional guidelines for designing predictable and maintainable RESTful resource structures.
  • Coding Standards - Establishes consistent naming conventions and architectural patterns to improve long-term maintainability.
  • Database Schema Migrations - Establishes standards for reversible database schema migrations to ensure consistent state across environments.
  • Database Management Patterns - Provides technical standards for writing secure queries and reversible migrations to ensure data integrity.
  • Domain Model Implementations - Provides patterns for implementing business rules within dedicated model classes to separate logic from formatting.
  • Lean Controller Patterns - Guides the movement of business rules from controllers to the model layer to maintain slim action handlers.
  • Logic and Presentation Separation - Prescribes architectural patterns for separating business logic and data retrieval from the presentation layer.
  • Domain Data Presentation Layers - Provides guidelines for separating business logic, data persistence, and presentation layers using MVC patterns.
  • Coding Standards - Establishes a consistent set of coding standards and naming conventions for maintainable Rails projects.
  • Development Guides - Provides technical recommendations for managing migrations, routing, and testing workflows.
  • RESTful API Designs - Provides best practices for designing RESTful API endpoints that express clear relationships between data resources.
  • Resource-Based Routing - Defines a standardized approach to mapping RESTful resources to controller actions using member and collection routes.
  • Data Validation - Recommends extracting custom validators into dedicated files to standardize input data verification before persistence.
  • Database Record Querying - Provides best practices for retrieving data using batch processing and secure placeholders to optimize performance and security.
  • Package Dependency Management - Offers guidance on managing external dependencies and locking library versions for environment consistency.
  • Application Settings Management - Provides structural recommendations for organizing initialization code and global application settings.
  • Environment-Specific Loading - Defines how to organize and load configuration settings based on development, test, or production environments.
  • Project Structure Organization - Recommends a structured directory layout for organizing custom assets and third-party libraries.
  • Integration Testing - Guides the implementation of integration tests and time-manipulation helpers to verify complex real-world user flows.
  • Integration Testing Workflows - Provides a structured approach to implementing integration tests and time-manipulation helpers.
  • Reusable Template Fragments - Recommends using layouts and partials to create reusable and modular user interface fragments.
  • Interface Text Localization - Recommends using externalized locale files to handle interface text localization for multiple languages.
  • Presentation Layer Encapsulation - Provides standards for developing view layers that prevent direct data model access from the UI.
  • Internationalization & Localization - Guides the implementation of internationalization using structured locale files and dot-separated keys.
  • Code Quality and Patterns - Community-driven style guide for Ruby on Rails.
  • Programming Languages - Community-driven style guide for Rails development.
  • Coding Style Guides - Community-driven standards for framework development.
6,509 stars·1,052 forks·33 views

Star history

Star history chart for bbatsov/rails-style-guideStar history chart for bbatsov/rails-style-guide

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Rails Style Guide

These projects share indexed features with Rails Style Guide. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • bbatsov/ruby-style-guidebbatsov avatar

    bbatsov/ruby-style-guide

    16,546View on GitHub↗

    This project is a community-driven Ruby coding style guide and static analysis standard. It provides a collection of agreed-upon rules for syntax, naming conventions, and structural guidelines to ensure uniform code appearance and maintainability across Ruby projects. The project serves as both a human-readable documentation resource for developers and a machine-readable RuboCop configuration specification. This allows natural language style guidelines to be mapped directly to automated linting rules. The system covers Ruby code standardization, style enforcement, and project governance thro

    View on GitHub↗16,546
  • thoughtbot/guidesthoughtbot avatar

    thoughtbot/guides

    9,556View on GitHub↗

    This project is a software engineering style guide and a curated collection of architectural patterns and coding standards. It provides a multi-language coding standard to ensure maintainable software across Ruby, Python, JavaScript, and Swift. The project establishes a development workflow specification for version control, continuous integration, and peer review to maintain a linear project history. It also includes a web accessibility framework based on ARIA and WCAG standards, using design tokens and semantic HTML patterns to build inclusive interfaces. The guides cover a broad range of

    Ruby
    View on GitHub↗9,556
  • rwaldron/idiomatic.jsR

    rwaldron/idiomatic.js

    25,712View on GitHub↗

    This project is a JavaScript style guide and a set of coding standards designed to ensure codebase consistency. It provides a collection of best practices for writing maintainable and idiomatic code, focusing on variable naming, type checking, and execution context. The project serves as a static analysis guide, offering frameworks and guidelines for using linters and automated tools to identify bugs and verify code correctness before deployment. It establishes standards for formatting, syntax, and variable declarations to standardize code style across a project. The scope of the project cov

    View on GitHub↗25,712
  • airbnb/rubyairbnb avatar

    airbnb/ruby

    3,890View on GitHub↗

    This project provides a collection of coding standard specifications, style guides, and configuration assets used to define automated rules for static code analysis in Ruby. It serves as a centralized set of RuboCop configurations and static analysis rules to ensure consistent syntax and idiomatic usage across a codebase. The project establishes a comprehensive Ruby style guide that defines naming conventions, indentation, and structural requirements. It utilizes a pluggable linting engine to enforce these standards through a defined set of patterns and constraints. The capability surface co

    Ruby
    View on GitHub↗3,890
Compare all 30 related projects→

Frequently asked questions

What does bbatsov/rails-style-guide do?

This project is a collection of community-driven coding standards and best practices for developing maintainable Ruby on Rails applications. It serves as a style guide, architecture reference, and development guide to ensure consistency across a codebase.

What are the main features of bbatsov/rails-style-guide?

The main features of bbatsov/rails-style-guide are: Coding Standards, Architectural Patterns, Ruby Code Standardization, ActiveRecord Patterns, API Design Guides, Database Schema Migrations, Database Management Patterns, Domain Model Implementations.

Which projects share features with bbatsov/rails-style-guide?

Projects with overlapping indexed features include: bbatsov/ruby-style-guide — This project is a community-driven Ruby coding style guide and static analysis standard. It provides a collection of… thoughtbot/guides — This project is a software engineering style guide and a curated collection of architectural patterns and coding… airbnb/ruby — This project provides a collection of coding standard specifications, style guides, and configuration assets used to… rwaldron/idiomatic.js — This project is a JavaScript style guide and a set of coding standards designed to ensure codebase consistency. It… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… firebase/quickstart-js — This project is a collection of reference implementations, sample code, and starter kits for integrating Firebase…