rails-active-storage
Installation
SKILL.md
Rails Active Storage
Active Storage provides a framework for attaching files to Active Record models through cloud storage services like Amazon S3, Google Cloud Storage, or local disk storage. It handles file uploads, transformations, previews, and lifecycle management with minimal configuration.
When to Use Active Storage
- File attachments: Attach avatars, documents, media files to models
- Cloud storage integration: Configure S3, Google Cloud Storage, or other services
- Image processing: Generate thumbnails, resize images, create variants
- File analysis: Extract metadata from images, videos, and PDFs
- Direct uploads: Allow users to upload directly to cloud storage
- File serving: Redirect or proxy files with signed URLs
- Multi-service support: Mirror files across multiple storage backends
- Testing: Use disk storage for development and testing