The Rails™ 7 Way is the comprehensive, authoritative reference guide for professionals delivering production-quality code using modern Ruby on Rails. It illuminates the entire Rails 7 API, its most powerful idioms, design approaches, and libraries. Building on the previous editions, this edition has been heavily refactored and updated.
The Rails™ 7 Way is the comprehensive, authoritative reference guide for professionals delivering production-quality code using modern Ruby on Rails. It illuminates the entire Rails 7 API, its most powerful idioms, design approaches, and libraries. Building on the previous editions, this edition has been heavily refactored and updated. It features entirely new chapters on Action Mailbox, Active Storage, asset pipelines, ViewComponent, and Turbo.
Through detailed code examples, you’ll dive deep into Ruby on Rails, discover why it’s designed as it is, and learn to make it do exactly what you want. Proven in thousands of production systems, the knowledge in this book will maximize your productivity and help you build more successful solutions.
Build powerful, scalable, REST-compliant back-end services
Program complex program flows using Action Controller
Represent models, relationships, and operations in Active Record, and apply advanced Active Record techniques
Smoothly evolve your database schema via Migrations
Craft maintainable front-ends with ActionView
Build your assets with one of the asset pipelines
Optimize performance and scalability with caching and Turbo
Improve your productivity using Haml templating
Secure your systems against attacks like SQL Injection, XSS, and XSRF
Integrate email using Action Mailer and Action Mailbox
Improve responsiveness with background processing
Build “API-only” back-end projects that speak JSON
Store your files in the cloud via Active Storage
Leverage Multiple Databases
Write a reactive application with little to no JavaScript
Author(s): Lucas Dohmen, Tom Henrik Aadland and Obie Fernandez
Publisher: leanpub.com
Year: 2023
Language: English
Pages: 750
Title Page
Table of Contents
Foreword
About the Authors
Acknowledgments
Introduction
Rails Configuration and Environments
Routing
REST, Resources, and Rails
Working with Controllers
Cookies, Session Management and the Flash
Action View & Haml
Active Record Migrations
Working with Active Record
Active Record Associations
Working with Queries
Validations
Advanced Active Record
Forms
Internationalization
All About Helpers
Authentication and Authorization
Security
Caching and Performance
RSpec
Background Processing
Active Storage
Action Mailer and Action Mailbox
Asset Pipeline
Component-Based Views
JavaScript
Notes