active-model

Official

Build Rails models without a database.

AuthorThinkOodle
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables the creation of Ruby objects that behave like Active Record models (with validations, form integration, etc.) but do not require a database backend, streamlining the development of form objects, API wrappers, and other non-persisted data structures.

Core Features & Use Cases

  • Form Objects: Create complex forms that aggregate data from multiple sources or represent transient data.
  • API Wrappers: Build objects that mirror external API responses for easier manipulation within Rails.
  • Service Objects: Add validation and model-like behavior to service objects without database coupling.
  • Use Case: Develop a ContactForm object that handles user input, performs validation, and sends an email, all without needing a ContactForm database table.

Quick Start

Create a new Ruby class named ContactForm that includes ActiveModel::Model and defines attr_accessor for name, email, and message, then add presence validations for these attributes.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: active-model
Download link: https://github.com/ThinkOodle/rails-skills/archive/main.zip#active-model

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.