The Rails web application framework is so productive that it’s attracting thousands of developers who had no intention of learning another programming language. Once they arrive, they notice they’re actually working in Ruby. They’ll be far more effective if they actually understand the language. This book’s for them: It’s the first Ruby guide specifically for programmers who want to “do Rails knowledgeably and right.”
Author David A. Black, a longtime Ruby community leader, focuses on helping programmers understand what their Rails code is doing, and on using Ruby to build Rails applications that go far beyond Rails’ idioms and techniques.
He begins by giving you your “bearings” in both the Ruby and Rails environments. You’ll learn how to write and execute Ruby programs; explore Ruby’s tools and organization; review how Rails and Ruby work together; and build a proof-of-concept version of the book’s case study e-commerce application.
Next, he dives more deeply into Ruby, drawing heavily on Rails applications and source code for examples. You’ll master Ruby’s approach to objects, learn how Ruby programs are constructed, discover how Ruby represents and manipulates data, and master Ruby’s most useful classes and modules. Along the way, you’ll discover why so many developers are passionate about Ruby in its own right,. (For instance, there’s a full chapter on Ruby’s ability to change program elements during runtime that would’ve been “written in stone” in other languages.)
In the final section, Black uses Ruby to enhance his Rails case study application. For instance, you’ll extend Rails’ ActiveRecord models for manipulating SQL data, and improve MVC applications with new controller actions and the corresponding views. If you’re not a convert to Ruby and Rails yet, by the time you’re done, you will be. Bill Camarda, from the June 2006 Read Only