Rails
用于 Rails 开发的 Cursor 规则,结合 基础 搭建。
awesome-cursorrules 社区·↓ 7.5k 次复制·
4 条规则
.cursorrules
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.内容来源:awesome-cursorrules(CC0-1.0 许可)