Ruby on Rails style guide rules and review checklist based on rails.rubystyle.guide. Use when asked to apply, summarize, or enforce Rails style conventions for configuration, routing, controllers, models, migrations, views, i18n, assets, mailers, Active Support, time/duration, bundler, testing, or process management.
references/ before responding.references/introduction.md - guide context, scope, and how it relates to the Ruby style guidereferences/configuration.md - app and environment configuration, initializers, config filesreferences/routing.md - routes.rb structure, RESTful routing, nesting, and namespacesreferences/controllers.md - controller responsibilities, action size, and shared statereferences/controllers-rendering.md - render/response conventions and status usagereferences/models.md - non-AR models, naming, and presentation boundariesreferences/models-active-record.md - AR macros, validations, callbacks, associations, and persistencereferences/models-active-record-queries.md - query style, where/order/find, and SQL safetyreferences/migrations.md - migration structure, constraints, reversibility, and data changesreferences/views.md - view logic boundaries, partials, and locals usagereferences/internationalization.md - i18n keys, locale files, and translation patternsreferences/assets.md - asset pipeline placement and third-party assetsreferences/mailers.md - mailer naming, delivery configuration, and email templatesreferences/active-support-core-extensions.md - preferred core extensions and Ruby alternativesreferences/time.md - time zone usage, parsing, and time helpersreferences/duration.md - duration helpers and time arithmetic patternsreferences/bundler.md - Gemfile grouping and dependency hygienereferences/testing.md - testing style preferences and time helpersreferences/managing-processes.md - process management in developmentreferences/further-reading.md - recommended books and docs for deeper guidancereferences/contributing.md - contribution workflow for the guide itselfreferences/license.md - licensing and attribution requirementsreferences/spread-the-word.md - sharing and attribution guidance