ruby-rails-application

Scaffold Ruby on Rails applications with models, controllers, and JWT authentication.

1|Updated Mar 31, 2011
One-click install
npx skills add https://github.com/stereosupersonic/dotfiles --skill ruby-rails-application
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-rails-application
Source: https://github.com/stereosupersonic/dotfiles/tree/main/claude/skills/ruby-rails-application
Command: npx skills add https://github.com/stereosupersonic/dotfiles --skill ruby-rails-application

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often spend considerable time wiring Rails apps from scratch, duplicating boilerplate for models, controllers, views, and authentication. This Skill provides a structured blueprint to accelerate Rails project setup with MVC architecture, Active Record associations, RESTful routes, and secure authentication patterns.

Core Features & Use Cases

  • MVC scaffolding: Prepares models, controllers, and views with conventional Rails structure.
  • Active Record & associations: Sets up relationships, validations, scopes, and common queries.
  • Authentication & API-ready: Includes JWT-based login, token handling, and protected routes for API or full-stack apps.
  • Use Case: Rapidly bootstrap a new Rails project to build a blog, API service, or admin panel with user-generated content.

Quick Start

Run commands to create a new Rails API project with PostgreSQL, then install required gems and scaffold initial models, controllers, and migrations.

  • rails new myapp --api --database=postgresql
  • cd myapp
  • bundle add bcrypt jwt
  • rails generate scaffold User email:string password_digest:string role:integer
  • rails db:create
  • rails db:migrate

Frequently Asked Questions about ruby-rails-application

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap a Rails API with PostgreSQL and JWT authentication?

To bootstrap a Rails API with PostgreSQL and JWT authentication, you scaffold a new project using the --api and --database=postgresql flags, then add bcrypt and jwt gems to handle token-based login and protected routes.

What's the best way to structure ActiveRecord associations in a new Rails app?

The best way to structure ActiveRecord associations in a new Rails app is using conventional MVC scaffolding, which sets up model relationships, validations, scopes, and common queries alongside RESTful controllers and migrations.

Can I use this Rails scaffolding for a full-stack app with view rendering?

Yes, you can use this Rails scaffolding for a full-stack app with view rendering. It targets both API backends and full-stack projects, providing templates for models, controllers, routes, and view rendering alongside MVC architecture.

Do I need to install PostgreSQL before scaffolding a Rails application?

Yes, you need to install PostgreSQL before scaffolding a Rails application, along with a Ruby/Rails environment. The setup requires PostgreSQL to create and migrate the database for your models.

How does JWT token handling work for protected routes in a Rails API?

JWT token handling for protected routes in a Rails API works by using the bcrypt and jwt gems to issue tokens upon login, which are then required in request headers to authenticate and secure access to RESTful controller endpoints.

What are the limitations of using MVC scaffolding for Ruby on Rails applications?

A limitation of using MVC scaffolding for Ruby on Rails applications is that it generates boilerplate models, controllers, and views, requiring manual customization of the service layer and business logic for complex user-generated content beyond standard REST APIs.