Guides
These guides follow the sections and order of the Rails Guides table of contents (vendor/rails/v8.0.5.2/guides/source/documents.yaml). The Rails Guides are a structural reference only: they are CC BY-SA 4.0 and trails documentation is CC BY 4.0, so every trails guide is written from scratch and no Rails Guides prose is copied or adapted (LICENSES.md).
Coming from Rails? Start with Trails Idioms, the one-page translation of naming, async, options-object and block conventions every guide uses. Each package's ratified deviations from Rails are on its package page.
Start Here
| Rails guide | Trails guide | Packages |
|---|---|---|
| Getting Started with Rails | Getting Started with Trails | trailties, activerecord, actionpack, actionview |
| Install Ruby on Rails | Not applicable: trails installs with pnpm; the Node setup is in Getting Started. | — |
Models
| Rails guide | Trails guide | Packages |
|---|---|---|
| Active Record Basics | Active Record Basics | activerecord |
| Active Record Migrations | Active Record Migrations | activerecord |
| Active Record Validations | Active Record Validations | activerecord, activemodel |
| Active Record Callbacks | Active Record Callbacks | activerecord, activemodel |
| Active Record Associations | Active Record Associations | activerecord |
| Active Record Query Interface | Not yet written (story) | activerecord, arel |
| Active Model Basics | Active Model Basics | activemodel |
Views
| Rails guide | Trails guide | Packages |
|---|---|---|
| Action View Overview | Action View Overview | actionview |
| Layouts and Rendering in Rails | Guide | actionview, actionpack |
| Action View Helpers | Action View Helpers | actionview |
| Action View Form Helpers | Guide | actionview |
Controllers
| Rails guide | Trails guide | Packages |
|---|---|---|
| Action Controller Overview | Action Controller Overview | actionpack |
| Action Controller Advanced Topics | Action Controller Advanced Topics | actionpack |
| Rails Routing from the Outside In | Trails Routing from the Outside In | actionpack |
Other Components
| Rails guide | Trails guide | Packages |
|---|---|---|
| Active Support Core Extensions | Active Support Core Extensions | activesupport |
| Action Mailer Basics | Action Mailer Basics | actionmailer, mail |
| Action Mailbox Basics | Action Mailbox Basics | actionmailbox |
| Action Text Overview | Action Text Overview | actiontext |
| Active Job Basics | Active Job Basics | activejob, solid-queue |
| Active Storage Overview | Active Storage Overview | activestorage, image-processing |
| Action Cable Overview | Action Cable Overview | actioncable, solid-cable |
Digging Deeper
| Rails guide | Trails guide | Packages |
|---|---|---|
| Rails Internationalization (I18n) API | Guide | i18n, activesupport |
| Testing Rails Applications | Testing Trails Applications | trailties, actionpack, activesupport |
| Debugging Rails Applications | Guide | trailties, activesupport |
| Configuring Rails Applications | Guide | trailties |
| The Rails Command Line | The Trails Command Line | trailties, thor, rake |
| The Asset Pipeline | Not applicable: trails serves assets through Vite, not propshaft or importmap-rails (root CLAUDE.md, "importmap-rails and propshaft are out of scope"). | — |
| Working with JavaScript in Rails | Working with JavaScript in Trails | vite-assets, vite-trails, turbo, stimulus |
| The Rails Initialization Process | Guide | trailties |
| Autoloading and Reloading | Autoloading and Reloading | zeitwerk, trailties |
| Active Support Instrumentation | Active Support Instrumentation | activesupport |
| Using Rails for API-only Applications | Using Trails for API-only Applications | actionpack, trailties |
Going to Production
| Rails guide | Trails guide | Packages |
|---|---|---|
| Tuning Performance for Deployment | Guide | trailties, activerecord |
| Caching with Rails: An Overview | Caching with Trails: An Overview | activesupport, actionview, solid-cache |
| Securing Rails Applications | Securing Trails Applications | actionpack, activerecord, activesupport |
| Error Reporting in Rails Applications | Guide | activesupport |
Advanced Active Record
| Rails guide | Trails guide | Packages |
|---|---|---|
| Active Record and PostgreSQL | Not yet written (story) | activerecord, pg |
| Multiple Databases | Not yet written (story) | activerecord |
| Active Record Encryption | Active Record Encryption | activerecord |
| Composite Primary Keys | Composite Primary Keys | activerecord |
Extending Rails
| Rails guide | Trails guide | Packages |
|---|---|---|
| The Basics of Creating Rails Plugins | Guide | trailties |
| Rails on Rack | Guide | rack, actionpack, trailties |
| Creating and Customizing Rails Generators & Templates | Guide | trailties, thor |
| Getting Started with Engines | Guide | trailties |
| Rails Application Templates | Guide | trailties, thor |
| Threading and Code Execution in Rails | Guide | activesupport, trailties |
Contributing
How trails is built and how to port a Rails file: CONTRIBUTING.md.