aj-geddes/useful-ai-prompts10 files

Ruby Rails Application

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/ruby-rails-application
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
10
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/ruby-rails-applicationInstalls these files
  • SKILL.md
  • references/active-record-queries.md
  • references/authentication-with-jwt.md
  • references/controllers-with-restful-actions.md
  • references/database-migrations.md
  • references/models-with-active-record.md
  • references/rails-project-setup.md
  • references/serializers.md
  • scripts/validate-schema.sh
  • templates/migration-template.sql

What this skill tells the agent

Ruby Rails Application

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

Overview

Build comprehensive Ruby on Rails applications with proper model associations, RESTful controllers, Active Record queries, authentication systems, middleware chains, and view rendering following Rails conventions.

When to Use

  • Building Rails web applications
  • Implementing Active Record models with associations
  • Creating RESTful controllers and actions
  • Integrating authentication and authorization
  • Building complex database relationships
  • Implementing Rails middleware and filters

Quick Start

Minimal working example:

rails new myapp --api --database=postgresql
cd myapp
rails db:create

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Rails Project SetupRails Project Setup
Models with Active RecordModels with Active Record
Database MigrationsDatabase Migrations
Controllers with RESTful ActionsControllers with RESTful Actions
Authentication with JWTAuthentication with JWT
Active Record QueriesActive Record Queries
SerializersSerializers

Best Practices

✅ DO

  • Use conventions over configuration
  • Leverage Active Record associations
  • Implement proper scopes for queries
  • Use strong parameters for security
  • Implement authentication in ApplicationController
  • Use services for complex business logic
  • Implement proper error handling
  • Use database migrations for schema changes
  • Validate all inputs at model level
  • Use before_action filters appropriately

❌ DON'T

  • Use raw SQL without parameterization
  • Implement business logic in controllers
  • Trust user input without validation
  • Store secrets in code
  • Use select \* without specifying columns
  • Forget N+1 query problems (use includes/joins)
  • Implement authentication in each controller
  • Use global variables
  • Ignore database constraints

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/ruby-rails-application, and install it in one click.

Use this skill