ruby-rails-application

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill ruby-rails-application
0 commentsdiscussion
summary

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.

skill.md

Ruby Rails Application

Table of Contents

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:

Guide Contents
Rails Project Setup Rails Project Setup
Models with Active Record Models with Active Record
Database Migrations Database Migrations
Controllers with RESTful Actions Controllers with RESTful Actions
Authentication with JWT Authentication with JWT
Active Record Queries Active Record Queries
Serializers Serializers

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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.655 reviews
  • Valentina Yang· Dec 20, 2024

    Keeps context tight: ruby-rails-application is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Fatima Ramirez· Dec 20, 2024

    Solid pick for teams standardizing on skills: ruby-rails-application is focused, and the summary matches what you get after install.

  • Valentina Chen· Dec 20, 2024

    ruby-rails-application is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Noah Singh· Dec 20, 2024

    ruby-rails-application fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Rahul Santra· Nov 11, 2024

    ruby-rails-application reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Olivia Perez· Nov 11, 2024

    Registry listing for ruby-rails-application matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Zaid Farah· Nov 11, 2024

    ruby-rails-application has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Omar Jackson· Nov 11, 2024

    ruby-rails-application fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Sofia Flores· Nov 11, 2024

    ruby-rails-application is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Pratham Ware· Oct 2, 2024

    We added ruby-rails-application from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

showing 1-10 of 55

1 / 6