Ruby for Rails
Ruby techniques for Rails developers
David A. Black
Foreword by David Heinemeier Hansson

May 2006 | 532 pages
ISBN: 1-932394-69-9

Out of Print $44.95 Softbound print + eBook
$35.99 eBook edition (PDF only)
Learn Ruby 1.9 from David A. Black in The Well-Grounded Rubyist


Look Inside Resources Downloads


“Closes the gap between Ruby as a language and Rails as a framework. The breadth of knowledge is astounding!”
—Benjamin S. Gorlick, Software Engineer and Developer

“Code examples are concise and useful. I highly recommend it.”
—Mark Eagle, Java Architect, MATRIX Resources, Inc

“A comprehensive tutorial on Ruby and on Rails”
—Bob Hutchison, CTO, Recursive Design Inc.

“I absolutely recommend it!”
—Andrew Oswald, Java Architect, Chariot Solutions

The word is out: with Ruby on Rails you can build powerful Web applications easily and quickly! And just like the Rails framework itself, Rails applications are Ruby programs. That means you can’t tap into the full power of Rails unless you master the Ruby language.

Ruby for Rails helps Rails developers achieve Ruby mastery. Each chapter deepens your Ruby knowledge and shows you how it connects to Rails. You’ll gain confidence working with objects and classes and learn how to leverage Ruby’s elegant, expressive syntax for Rails application power. And you'll become a better Rails developer through a deep understanding of the design of Rails itself and how to take advantage of it.

Newcomers to Ruby will find a Rails-oriented Ruby introduction that’s easy to read and that includes dynamic programming techniques, an exploration of Ruby objects, classes, and data structures, and many neat examples of Ruby and Rails code in action.

Ruby for Rails: the Ruby guide for Rails developers!



David A. Black has been programming in Ruby since 2000. He is the owner and director of the consultancy Ruby Power and Light, LLC, and a director of Ruby Central, Inc. David is a Ruby library contributor, and an expert practitioner and trainer in the Ruby language and the Ruby on Rails development framework.

David A. Black was a keynote presenter at the YVR06 Canada on Rails Conference, April 13-14, in Vancouver, BC, Canada.


“The writing is excellent and the style is very engaging. Every concept is stunningly well explained. Much as I liked and enjoyed "Programming Ruby" (the "pickaxe book" to it's friends) by Thomas, Fowler and Hunt, this book takes the state of Ruby writing to a new level.

The progression of the book is very well thought out. The first part introduces us to both Ruby and two and three teach Ruby skills and idioms that are directly applicable to Rail application creation. Part four takes these new skills and shows them being applied to the second Rails application of the book. I found this to be a very good sequence for progressing through the material.

The examples in the book are excellent and many of them are geared towards Rails-style situations. This not only helps to teach Ruby skills, but also keeps the Rails context firmly front and center during the process. ...This is a great book, that's very easy and enjoyable to read. It's a stunningly well written explanation of real-world Ruby skills for Rails development”

“This book starts from the premise that many smart developers are adopting Rails on its own merits, with minimal prior knowledge of Ruby, and that those developers need to learn Ruby, fast! ...Whether you're new to Ruby and Rails or just need to learn how to get the most out of this powerful combination, this book is a winner.”

“I have read several Ruby books, and not one comes close to matching David's style that is informative, passionate, and shows a strong desire and ambition to teach Ruby. This is by far the best book currently on the shelves for those who want to understand Ruby better and become a better Rails and Ruby programmer. The only thing you stand to lose by reading this book is becoming more knowledgeable about the language and framework.”

“Clear, informative, and full of real-life experience and wisdom, and highly recommended for any new or intermediate Rails developer.”

“Ruby for Rails is an awesome book on Ruby. If you are beginner, would like to get a solid understanding of the Ruby principles, or your goal is to polish up your Ruby knowledge to grasp the Rails framework - R4R was made just for you! Check it out - you won't be disappointed.”