PluginBench
Rule

rails

via PatrickJS/awesome-cursorrules

Rails 8 development conventions and best practices for generators, architecture, and tooling.

What is rails?

Guides Rails 8 development with emphasis on using command-line generators, following REST conventions, and leveraging Rails' built-in tools like Hotwire and Solid libraries. Use this rule when building or maintaining Rails 8 applications to maintain consistency with modern Rails patterns.

  • Prefer Rails generators over hand-written boilerplate to reduce setup time
  • 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 flows
  • Leverage Hotwire for interactivity and Solid Queue/Cache/Cable for background jobs and real-time features
  • Use Vite only when npm-managed JavaScript is explicitly needed

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

React best practices and patterns for modern web applications

**/*.tsx +2
41k
via PatrickJS/awesome-cursorrules

React development with Chakra UI component library and best practices.

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

Structured workflow for creating React components with design review and code reuse checks.

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

Generate production-ready React forms from screenshots, PDFs, or text using FormEngine JSON schema with RSuite, Material UI, or Mantine.

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

Apollo Client integration patterns and best practices for React applications.

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

React development with MobX state management integration and best practices.

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