Rails Cookbook (Cookbooks (O'Reilly))

Rails Cookbook (Cookbooks (O'Reilly))
by Rob Orsini

Rails Cookbook (Cookbooks (O'Reilly))
List Price: $39.99
Our Price: $22.70
You Save: $17.29 (43%)
Availability: Usually ships in 1-2 business days
Buy Used: from $0.21 (click here)
Category: Book
See more book details and other editions


or

Book Summary Information

Author: Rob Orsini
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2007-01-16
ISBN: 0596527314
Number of pages: 544
Publisher: O'Reilly Media

Book Reviews of Rails Cookbook (Cookbooks (O'Reilly))

Book Review: A fine collection of problems and solutions
Summary: 4 Stars

When reading the foreword of Rails Cookbook I felt a strong kinship with Zed Shaw, I too have fond memories of the first edition of Perl Cookbook and the way I relied on it once I'd taken the training wheels off. Since that one I have relied on several of the O'Reilly Cookbook series. It is only when I discard the early tutorial and dive in the deep end with a "cookbook" on my desk that I really start to learn proficiency.

I felt timorous and unsure when I finished "Agile Web Development with Rails", a marvelous tutorial that introduced me to my first real web development framework (I must have enjoyed it, I just bought the second edition). Since I have volunteered to develop a fairly large and complex web application in Rails I awaited the arrival of my copy of Rails Cookbook with hopeful anticipation and bated breath.

Rob Orsini, his fellow contributors (15 in all) and the team at O'Reilly have once again delivered. Compared to the previous titles in the series I've owned "Rails Cookbook" seems to have fewer recipes but as it is tackling an entire application framework and some serious issues, some of the solutions and discussions run a lot longer. The book is targeted at programmers who know something about web development but are early in their use of Rails, though it should be helpful to all Rails developers.

The book starts with tackling issues of installation and getting development tools installed in the first two chapters. Despite already deploying a couple of simple Rails apps I found that there was the odd useful tip in these chapters. The book then covers each of the three main sections of Rails; Active Record, Action View and Action Controller. The rest of the book goes on with large chapters on testing, Javascript, debugging, performance and hosting and deployment. Along the way it also covers REST, Action Mailer, security, plug-ins and graphics.

The extremely large section on Active Record was to me the most useful. I seem to spend an inordinate percentage of my Rails coding time with Active Record and it contains a large part of Rails power so I appreciated the size of this chapter. By contrast the chapter on graphics is almost entirely unread.

It seems obvious that this book should be compared to Pragmatic's "Rails Recipes". The first point of difference is that Rails Cookbook covers installation and setup. The second point is that is 'Recipes' covers Rails 1.1 while 'Cookbook' targets the brand new Rails 1.2. As a project fairly new on the scene Rails is a fast moving target so the six months between the two books makes a difference. Both books have excellent coverage of the various aspects of Rails, with a great deal of overlap. 'Recipes' has more, shorter pieces while 'Cookbook' tends towards longer pieces with more discussion. 'Cookbook' is also more general, with more recipes more likely to be useful in every Rails project you write.

The style is different between the two. Here Cookbook comes off second best, it feels as though tightly edited by a number of hands and ends up lacking personality; functional but cold compared to Recipes. The writing, however, is good. It's easily read, at times it feels like a good textbook. The layout is clean, it is easy to find the information you need from each recipe when you want.

With almost all "cookbook" style books I seem to be left feeling that a number of the recipes are just a little too obvious and covered well in beginner tutorials. There is some of this in Rails Cookbook, most notably the first two chapters, but overall the book will be useful to any beginner to intermediate Rails programmer. Personally I had a couple of moments where I read a tip and wanted to scream as it demonstrated and explained in a few short sentences and half a page of code what had taken me hours to discover for myself.

The "Cookbook" series all seem to be books worth the price and shelf space. This one is no exception. I'd give it three out of five with an extra half for its timely information on Rails 1.2 and would recommend it for all Rails programmers from the absolute beginner through to all but the most experienced. If you already have a copy of 'Recipes' and are happy with it then you might want to stick with that till either volume is updated for the next major revision of Rails, otherwise you will almost certainly appreciate a copy of Rails Cookbook.

Summary of Rails Cookbook (Cookbooks (O'Reilly))

Rails Cookbook is packed with the solutions you need to be a proficient developer with Rails, the leading framework for building the new generation of Web 2.0 applications. Recipes range from the basics, like installing Rails and setting up your development environment, to the latest techniques, such as developing RESTful web services.

With applications that are code light, feature-full and built to scale quickly, Rails has revolutionized web development. The Rails Cookbook addresses scores of real-world challenges; each one includes a tested solution, plus a discussion of how and why it works, so that you can adapt the techniques to similar situations. Topics include:

  • Modeling data with the ActiveRecord library
  • Setting up views with ActionView and RHTML templates
  • Building your application's logic into ActionController
  • Testing and debugging your Rails application
  • Building responsive web applications using JavaScript and Ajax
  • Ensuring that your application is security and performs well
  • Deploying your application with Mongrel and Apache
  • Using Capistrano to automate deployment
  • Using the many Rails plugins
  • Working with graphics


Whether you're new to Rails or an experienced developer, you'll discover ways to test, debug and secure your applications, incorporate Ajax, use caching to improve performance, and put your application into production. Want to get ahead of the Web 2.0 curve? This valuable cookbook will save you hundreds of hours when developing applications with Rails.

Internet Books

Book Subjects
Similar Books and other products
Ruby on Rails: Up and Running ImageRuby on Rails: Up and Running
by Bruce Tate, Curt Hibbs
O'Reilly Media; Published: 2006-08-01; Paperback; Book
Best price: $4.55
Price in other shops: $29.99
Rails 3 Way, The (2nd Edition) (Addison-Wesley Professional Ruby Series) ImageRails 3 Way, The (2nd Edition) (Addison-Wesley Professional Ruby Series)
by Obie Fernandez
Addison-Wesley Professional; Published: 2010-12-20; Paperback; Book
Best price: $25.00
Price in other shops: $49.99
Learning Rails ImageLearning Rails
by Simon St. Laurent, Edd Dumbill Edd
O'Reilly Media; Published: 2008-11-25; Paperback; Book
Best price: $25.29
Price in other shops: $34.99
Ajax on Rails ImageAjax on Rails
by Scott Raymond
O'Reilly Media; Published: 2007-01-10; Paperback; Book
Best price: $4.48
Price in other shops: $39.99
Advanced Rails ImageAdvanced Rails
by Brad Ediger
O'Reilly Media; Published: 2008-01-11; Paperback; Book
Best price: $18.97
Price in other shops: $34.99
Learning Ruby ImageLearning Ruby
by Michael James Fitzgerald
O'Reilly Media; Published: 2007-05-21; Paperback; Book
Best price: $21.30
Price in other shops: $34.99
Ruby Cookbook (Cookbooks (O'Reilly)) ImageRuby Cookbook (Cookbooks (O'Reilly))
by Lucas Carlson, Leonard Richardson
O'Reilly Media; Published: 2006-07-26; Paperback; Book
Best price: $18.00
Price in other shops: $49.99
Agile Web Development with Rails (Pragmatic Programmers) ImageAgile Web Development with Rails (Pragmatic Programmers)
by Sam Ruby, Dave Thomas, David Heinemeier Hansson
Pragmatic Bookshelf; Published: 2011-03-31; Paperback; Book
Best price: $24.46
Price in other shops: $43.95
Ruby on Rails 3 Tutorial: Learn Rails by Example (Addison-Wesley Professional Ruby Series) ImageRuby on Rails 3 Tutorial: Learn Rails by Example (Addison-Wesley Professional Ruby Series)
by Michael Hartl
Addison-Wesley Professional; Published: 2010-12-26; Paperback; Book
Best price: $20.89
Price in other shops: $39.99
The Ruby Programming Language ImageThe Ruby Programming Language
by David Flanagan, Yukihiro Matsumoto
O'Reilly Media; Published: 2008-02-01; Paperback; Book
Best price: $22.55
Price in other shops: $39.99