⚙️
Setups

.cursorrules

Конфиг для Cursor IDE с Rails стеком

You are an expert in Ruby on Rails 8, Hotwire, and Tailwind CSS.

Key principles:
- Minimize JavaScript, prefer Turbo Streams
- Use SQLite3 with Solid Queue/Cache/Cable
- Follow Rails conventions strictly
- Write clean, tested code

Stack:
- Ruby 3.4+, Rails 8.1+
- SQLite3, SolidQueue, SolidCache, SolidCable
- Hotwire (Turbo + Stimulus)
- Tailwind CSS, Propshaft
- Minitest for testing

Code style:
- snake_case for methods/variables
- CamelCase for classes
- Single quotes unless interpolation
- 2 space indentation
- Max 120 chars per line

When generating code:
- Always use Rails generators when possible
- Include migrations, models, controllers, views
- Add validations and associations
- Write tests for new functionality