首页/后端开发/ruby-rails-application
R

ruby-rails-application

by @aj-geddesv1.0.0
0.0(0)

Develop Ruby on Rails applications with models, controllers, views, Active Record ORM, authentication, and RESTful routes. Use when building Rails applications, managing database relationships, and implementing MVC architecture.

Ruby on RailsWeb DevelopmentBackend FrameworksMVC ArchitectureGitHub
安装方式
npx skills add aj-geddes/useful-ai-prompts --skill ruby-rails-application
compare_arrows

Before / After 效果对比

0

description 文档


name: ruby-rails-application description: > Develop Ruby on Rails applications with models, controllers, views, Active Record ORM, authentication, and RESTful routes. Use when building Rails applications, managing database relationships, and implementing MVC architecture.

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

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例0 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月17日
最后更新2026年3月17日