Praise for The Rails Way "For intermediates and above, I strongly recommend adding this title to your technical bookshelf. There is simply no other Rails title on the market at this time that offers the technical depth of the framework than The Rails(TM) 3 Way." --Mike Riley, Dr. Dobb's Journal "I highly suggest you get this book. Software moves fast, especially the Rails API, but I feel this book has many core API and development concepts that will be useful for a while to come." --Matt Polito, software engineer and member of Chicago Ruby User Group "This book should live on your desktop if you're a Rails developer. It's nearly perfect in my opinion." --Luca Pette, developer "The Rails(TM) 3 Way is likely to take you from being a haphazard poke-a-stick-at-it programmer to a deliberate, skillful, productive, and confident RoR developer." --Katrina Owen, JavaRanch "I can positively say that it's the single best Rails book ever published to date. By a long shot." --Antonio Cangiano, software engineer and technical evangelist at IBM "This book is a great crash course in Ruby on Rails! It doesn't just document the features of Rails, it filters everything through the lens of an experienced Rails developer--so you come out a pro on the other side." --Dirk Elmendorf, cofounder of Rackspace Inc. and Rails developer "The key to The Rails Way is in the title. It literally covers the 'way' to do almost everything with Rails. Writing a truly exhaustive reference to the most popular web application framework used by thousands of developers is no mean feat. A thankful community of developers that has struggled to rely on scant documentation will embrace The Rails Way with open arms. A tour de force!" --Peter Cooper, editor, Ruby Inside: The Ruby Blog "In the past year, dozens of Rails books have been rushed to publication. A handful are good. Most regurgitate rudimentary information easily found on the Web. Only this book provides both the broad and deep technicalities of Rails. Nascent and expert developers, I recommend you follow The Rails Way." --Martin Streicher, chief technology officer, McClatchy Interactive, former editor in chief of Linux Magazine "Hal Fulton's The Ruby Way has always been by my side as a reference while programming Ruby. Many times I had wished there was a book that had the same depth and attention to detail, only focused on the Rails framework. That book is now here and hasn't left my desk for the past month." --Nate Klaiber, Ruby programmer "I knew soon after becoming involved with Rails that I had found something great. Now, with Obie's book, I have been able to step into Ruby on Rails development coming from .NET and be productive right away. The applications I have created I believe to be a much better quality due to the techniques I learned using Obie's knowledge." --Robert Bazinet, InfoQ.com, .NET, and Ruby community editor and founding member of the Hartford Ruby Brigade "Extremely well written; it's a resource that every Rails programmer should have. Yes, it's that good." --Reuven Lerner, Linux Journal columnist
The “Bible” for Rails Development: Now Fully Updated for Rails 4.1
"When I read The Rails Way for the first time, I felt like I truly understood Rails for the first time.”
—From the Foreword by Steve Klabnik
Ruby on Rails 4 is leaner, tighter, and even more valuable to professional web developers. More than ever, it helps you focus on what matters most: delivering business value via clean and maintainable code.
The Rails™ 4 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 4. Kevin Faustino joins pioneering Rails developer Obie Fernandez to illuminate the entire Rails 4 API, including its most powerful and modern idioms, design approaches, and libraries. They present extensive new and updated content on security, performance, caching, Haml, RSpec, Ajax, the Asset Pipeline, and more.
Through detailed code examples, you’ll dive deep into the Rails 4 code base, discover why Rails is designed as it is, and learn how to make it do exactly what you want. Proven in dozens of production systems, this book’s techniques will maximize your productivity and help you build more successful solutions. You’ll want to keep this guide by your computer—you’ll refer to it constantly.
This guide will help you
- Build powerful, scalable REST-compliant APIs
- Program complex program flows using Action Controller
- Represent models, relationships, CRUD operations, searches, validation, callbacks, and more
- Smoothly evolve application database schema via Migrations
- Apply advanced Active Record techniques: single-table inheritance, polymorphic models, and more
- Create visual elements with Action View and partials
- Optimize performance and scalability with view caching
- Master the highly productive Haml HTML templating engine
- Make the most of Rails’ approach to session management
- Secure your systems with Rails 4’s improved authentication and authorization
- Resist SQL Injection, XSS, XSRF, and other attacks
- Extend Rails with popular gems and plugins, and learn to write your own
- Integrate email services with Action Mailer
- Improve responsiveness with background processing
- Leverage Asset Pipeline to simplify development, improve perceived performance, and reduce server burdens
- Accelerate implementation and promote maintainability with RSpec