# rubocop/rails-style-guide

A community-driven Ruby on Rails style guide

Repository: https://github.com/rubocop/rails-style-guide
Canonical: https://ross.abutalabs.com/products/rails-style-guide
Homepage: http://rails.rubystyle.guide
License Family: other
Topics: ruby, rails, styleguide, rubocop
Last push: 2026-07-21T01:22:59+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 5456, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license, no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6504, forks 1046 (observed 2026-08-28T04:09:43.905344+00:00)

## What it is
A community-driven style guide for Ruby on Rails covering routing, controllers, models, migrations, views, and more. It serves as the reference for the RuboCop Rails cops and documents recommended coding conventions.

## Use cases
- how should I structure Rails routes
- best practices for ActiveRecord models
- Rails coding conventions for teams
- style rules for Rails migrations
- how to write skinny controllers in Rails
- recommended Rails style guide for RuboCop

## When to choose
- you write Ruby on Rails code and want consistent team conventions
- you use RuboCop Rails and want to understand the rationale behind its cops
- you are onboarding developers to a Rails codebase

## When to avoid
- you need executable linting rather than documentation (use rubocop-rails)
- you work outside Ruby or Rails
- you need a machine-readable config rather than prose guidance

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation
- domain: web-development, developer-tools, documentation
- platform: cross-platform
- tags: ruby, rails, style-guide, rubocop, code-style, best-practices

## Member repositories
- rubocop/rails-style-guide (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:43.905344+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:44:29.178797+00:00, confidence not recorded.
  - homepage: http://rails.rubystyle.guide (fetched 2026-08-29T08:41:09.162269+00:00, sha 67a2f5601f36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
