Sign in
Explore
Prompts · RulesBackend & APIsReviewed

rails-cursorrules-prompt-file

Rails 8 guidelines, starting with the rule to prefer the Rails generators over hand-written boilerplate.

Kind
Rules
Works with
Cursor
Languages
Ruby
Source
Awesome Cursor Rules @ b044f956f021
Path
rules/rails-cursorrules-prompt-file.mdc
License
CC0-1.0
Jobs
Implementation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
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.