PluginBench
Rule

rails

via PatrickJS/awesome-cursorrules

Rails 8 development guidelines with generators, Hotwire, and modern conventions.

What is rails?

Guides Rails 8 development using built-in generators, Solid Stack components, and RESTful patterns. Apply this rule when building Rails applications to ensure consistent use of Rails conventions, proper database practices, and appropriate tooling choices.

  • Use Rails generators for scaffolding instead of hand-written boilerplate
  • Run bin/dev for local development and monitor logs after changes
  • Follow Rails 8 conventions for Solid Queue, Solid Cache, Solid Cable, Propshaft, and Kamal
  • Keep controllers RESTful and delegate complex logic to service objects
  • Use PostgreSQL with proper indexing, connection pooling, and safe migrations
  • Write Minitest coverage for models, controllers, and integration tests

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

Rails 8 Development Guidelines

  • Prefer Rails command-line generators over hand-written boilerplate.
  • Use bin/dev for local development and check logs after significant changes.
  • Follow Rails 8 conventions for Solid Queue, Solid Cache, Solid Cable, Propshaft, and Kamal where appropriate.
  • Keep controllers RESTful and focused; use service objects for complex business logic.
  • Use PostgreSQL, proper indexes, connection pooling, and safe migrations.
  • Write Minitest coverage for models, controllers, and integration flows.
  • Use Hotwire for standard Rails interactivity and Vite only when npm-managed JavaScript is needed.

Related rules

Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.

**/*
41k
via PatrickJS/awesome-cursorrules

Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.

**/*
41k
via PatrickJS/awesome-cursorrules

Android development with Jetpack Compose, clean architecture, and Material Design 3.

**/*
41k
via PatrickJS/awesome-cursorrules

Angular development with Novo Elements UI library using standalone components.

**/*
41k
via PatrickJS/awesome-cursorrules

Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.

**/*
41k
via PatrickJS/awesome-cursorrules

Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.

**/*.sh +5
41k
via PatrickJS/awesome-cursorrules