rails-service

Community

Rails service objects with chainable patterns

Authorsamrocks03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Encapsulates business logic in Rails by organizing module-namespaced service classes that inherit from a shared Base, ensuring controllers stay thin and all domain logic is centralized in app/services/.

Core Features & Use Cases

  • Module-namespaced services under a single pattern (e.g., WidgetService) with separate Create, Update, Destroy, Show, Index classes.
  • Base class provides standardized error handling, OpenStruct responses, and I18n integration; controllers delegate to services.
  • Use cases include CRUD workflows, complex business logic, and transactional operations that require consistent serialization.

Quick Start

Create a WidgetService::Create with your params and call it to perform a new widget creation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: rails-service
Download link: https://github.com/samrocks03/shuttle-office-service/archive/main.zip#rails-service

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 471,000+ vetted skills library on demand.