Skip to content

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 guideTrails guidePackages
Getting Started with RailsGetting Started with Trailstrailties, activerecord, actionpack, actionview
Install Ruby on RailsNot applicable: trails installs with pnpm; the Node setup is in Getting Started.—

Models ​

Rails guideTrails guidePackages
Active Record BasicsActive Record Basicsactiverecord
Active Record MigrationsActive Record Migrationsactiverecord
Active Record ValidationsActive Record Validationsactiverecord, activemodel
Active Record CallbacksActive Record Callbacksactiverecord, activemodel
Active Record AssociationsActive Record Associationsactiverecord
Active Record Query InterfaceNot yet written (story)activerecord, arel
Active Model BasicsActive Model Basicsactivemodel

Views ​

Rails guideTrails guidePackages
Action View OverviewAction View Overviewactionview
Layouts and Rendering in RailsGuideactionview, actionpack
Action View HelpersAction View Helpersactionview
Action View Form HelpersGuideactionview

Controllers ​

Rails guideTrails guidePackages
Action Controller OverviewAction Controller Overviewactionpack
Action Controller Advanced TopicsAction Controller Advanced Topicsactionpack
Rails Routing from the Outside InTrails Routing from the Outside Inactionpack

Other Components ​

Rails guideTrails guidePackages
Active Support Core ExtensionsActive Support Core Extensionsactivesupport
Action Mailer BasicsAction Mailer Basicsactionmailer, mail
Action Mailbox BasicsAction Mailbox Basicsactionmailbox
Action Text OverviewAction Text Overviewactiontext
Active Job BasicsActive Job Basicsactivejob, solid-queue
Active Storage OverviewActive Storage Overviewactivestorage, image-processing
Action Cable OverviewAction Cable Overviewactioncable, solid-cable

Digging Deeper ​

Rails guideTrails guidePackages
Rails Internationalization (I18n) APIGuidei18n, activesupport
Testing Rails ApplicationsTesting Trails Applicationstrailties, actionpack, activesupport
Debugging Rails ApplicationsGuidetrailties, activesupport
Configuring Rails ApplicationsGuidetrailties
The Rails Command LineThe Trails Command Linetrailties, thor, rake
The Asset PipelineNot 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 RailsWorking with JavaScript in Trailsvite-assets, vite-trails, turbo, stimulus
The Rails Initialization ProcessGuidetrailties
Autoloading and ReloadingAutoloading and Reloadingzeitwerk, trailties
Active Support InstrumentationActive Support Instrumentationactivesupport
Using Rails for API-only ApplicationsUsing Trails for API-only Applicationsactionpack, trailties

Going to Production ​

Rails guideTrails guidePackages
Tuning Performance for DeploymentGuidetrailties, activerecord
Caching with Rails: An OverviewCaching with Trails: An Overviewactivesupport, actionview, solid-cache
Securing Rails ApplicationsSecuring Trails Applicationsactionpack, activerecord, activesupport
Error Reporting in Rails ApplicationsGuideactivesupport

Advanced Active Record ​

Rails guideTrails guidePackages
Active Record and PostgreSQLNot yet written (story)activerecord, pg
Multiple DatabasesNot yet written (story)activerecord
Active Record EncryptionActive Record Encryptionactiverecord
Composite Primary KeysComposite Primary Keysactiverecord

Extending Rails ​

Rails guideTrails guidePackages
The Basics of Creating Rails PluginsGuidetrailties
Rails on RackGuiderack, actionpack, trailties
Creating and Customizing Rails Generators & TemplatesGuidetrailties, thor
Getting Started with EnginesGuidetrailties
Rails Application TemplatesGuidetrailties, thor
Threading and Code Execution in RailsGuideactivesupport, trailties

Contributing ​

How trails is built and how to port a Rails file: CONTRIBUTING.md.


This guide is licensed under CC BY 4.0. Code examples are licensed under the MIT License.