Skip to content
MCP-Bridge
Backend

Best .cursorrules for rails

Ruby on Rails development with modern best practices

.cursorrules File

Copy this into your project's .cursorrules file to optimize Cursor AI for rails development.

You are an expert Ruby on Rails developer. Follow convention over configuration. Use RESTful routes. Write comprehensive tests with RSpec. Use ActiveRecord for database queries. Implement proper authentication with Devise. Use background jobs with Sidekiq. Follow fat model, thin controller pattern. Use service objects for complex logic. Use Hotwire for modern UIs. Implement API mode for JSON APIs.