Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Rails Cookbook and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
53 used & new from $2.47

Have one to sell? Sell yours here
 
   
Rails Cookbook (Cookbooks (O'Reilly))
 
 
Start reading Rails Cookbook on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Rails Cookbook (Cookbooks (O'Reilly)) (Paperback)

by Rob Orsini (Author)
Key Phrases: active record, action controller, running rails, Action View, Rails Application Testing, Extending Rails (more...)
4.6 out of 5 stars See all reviews (14 customer reviews)

List Price: $39.99
Price: $26.39 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.60 (34%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Wednesday, July 15? Choose One-Day Shipping at checkout. Details
28 new from $9.99 25 used from $2.47
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $17.59
Digital (Download: PDF) $31.99 $31.99
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy JavaScript Pocket Reference (2nd Edition) and get Rails Cookbook (Cookbooks (O'Reilly)) at an additional 5% off Amazon.com's everyday low price.

JavaScript Pocket Reference (2nd Edition) + Rails Cookbook (Cookbooks (O'Reilly))
Buy Together Today: $35.01

Show availability and shipping details

  • JavaScript Pocket Reference (2nd Edition)

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • This item: Rails Cookbook (Cookbooks (O'Reilly))

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Ruby Cookbook (Cookbooks (O'Reilly))

Ruby Cookbook (Cookbooks (O'Reilly))

by Lucas Carlson
4.7 out of 5 stars (30)  $31.49
Ajax on Rails

Ajax on Rails

by Scott Raymond
4.2 out of 5 stars (16)  $26.39
Agile Web Development with Rails, 2nd Edition

Agile Web Development with Rails, 2nd Edition

by Dave Thomas
4.6 out of 5 stars (109)  $35.95
The Ruby Programming Language

The Ruby Programming Language

by David Flanagan
5.0 out of 5 stars (25)  $26.39
Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby)

Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby)

by Dave Thomas
4.4 out of 5 stars (62)  $32.97
Explore similar items

Editorial Reviews

Product Description
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.

About the Author
Rob Orsini is an open source developer living in northern California. He currently works for O'Reilly Media in the production software group. Previously, Rob was the webmaster at Industrial Light & Magic, where he developed applications in support of the special effects industry. Rob has been programming the web since 1998, and upon discovering Rails, hopes to continue for many more years to come. Rob is also a jazz musician and a loving father.

Product Details

  • Paperback: 534 pages
  • Publisher: O'Reilly Media, Inc.; illustrated edition edition (May 11, 2009)
  • Language: English
  • ISBN-10: 0596527314
  • ISBN-13: 978-0596527310
  • Product Dimensions: 9.1 x 7 x 1 inches
  • Shipping Weight: 1.7 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars See all reviews (14 customer reviews)
  • Amazon.com Sales Rank: #14,036 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #9 in  Books > Computers & Internet > Operating Systems > Unix
    #12 in  Books > Computers & Internet > Databases > Specific Databases > MySQL & mSQL
    #18 in  Books > Computers & Internet > Business & Culture > Privacy

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Rails Cookbook (Cookbooks (O'Reilly))
67% buy the item featured on this page:
Rails Cookbook (Cookbooks (O'Reilly)) 4.6 out of 5 stars (14)
$26.39
The Ruby Programming Language
8% buy
The Ruby Programming Language 5.0 out of 5 stars (25)
$26.39
Advanced Rails Recipes
8% buy
Advanced Rails Recipes 4.6 out of 5 stars (7)
$25.71
Agile Web Development with Rails, Third Edition
8% buy
Agile Web Development with Rails, Third Edition 3.8 out of 5 stars (10)
$29.01

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(13)
(13)
(2)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

14 Reviews
5 star:
 (9)
4 star:
 (5)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (14 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
13 of 14 people found the following review helpful:
5.0 out of 5 stars Serves as a basic tutorial, reference, and handbook of solutions, February 8, 2007
By calvinnme "Texan refugee" (Fredericksburg, Va) - See all my reviews
(TOP 10 REVIEWER)      
This really is not intended to be a tutorial on Rails, but as with all of the O'Reilly cookbooks, it is a collection of solutions to common problems involving Rails. However the recipes in the early chapters are so basic, it in fact, serves two purposes. The early chapters gets the Rails novice up and running, and the later chapters serve up answers to many of the problems that Rails developers of all skill levels have. Therefore, the reader should already be experienced at web development, and be a Rails user of any level of experience including novice.

Other frameworks are often designed such that if you can make the leap of understanding their complexities, you can solve many problems. The core developers of the Rails framework differed in their approach and designed a framework that solves simple problems easily and very well. From that juncture, you can easily work up to more difficult problems. The following is the table of contents:

Chapter 1. Getting Started - Deals with the basics such as joining the Rails community, finding documentation, and installation.

Chapter 2. Rails Development - Recipes on setting up your environment, starting your first Rails applications, and generating Ruby documentation for your application.

Chapter 3. Active Record - 22 recipes on "Active Record", which is a persistent storage mechanism for interacting with a relational database.

Chapter 4. Action Controller - 16 recipes on "Action Controller", which receives requests and passes them on to a specific action.

Chapter 5. Action View - 16 recipes on dealing with the presentation details of your Rails application.

Chapter 6. RESTful Development - An odd little chapter of only 6 recipes about breaking down HTTP requests to a natural, human-language type structure where there are verbs and nouns. This chapter has an academic feel to it.

Chapter 7. Rails Application Testing - 24 recipes on the subject of testing from the perspective of test driven development. Covers Rake, Rcov, YAML fixtures, and CSV fixtures.

Chapter 8. JavaScript and Ajax - 13 recipes on using Javascript and Ajax from within the Rails framework. Shows you how to deal with JavaScript using Ruby code, among other things.

Chapter 9. Action Mailer - 6 recipes that show show the three different ways to retrieve email and forward it to the receive method of your mailer class.

Chapter 10. Debugging Rails Applications - 12 recipes that include Rails' robust automated testing features and a number of tools that expose bugs in the inner workings of your program. Specifically Firefox extensions, the Javascript shell, and ruby-debug are mentioned, among others.

Chapter 11. Security - A short but important chapter of only 5 recipes that include security best practices, SQL injection, and cross-site scripting (XSS).

Chapter 12. Performance - 8 recipes dealing with web application performance. Covered topics include measuring, benchmarking, and improving performance as well as dealing with cached content.

Chapter 13. Hosting and Deployment - 14 recipes on the deployment of your Rails application. This section contains quite a bit of information on Capistrano, the tool of choice for the automated rollout of Rails applications.

Chapter 14. Extending Rails with Plug-ins - How to find and install plug-ins for tasks Rails was not designed to handle. Talks about some specific plug-ins such as acts_as_versioned, acts_as_authenticated, and acts_as_taggable, including what problems each plug-in solves.

Chapter 15. Graphics - 7 recipes for dealing with tools for handling visual output. Topics include RMagick, which is an equivalent of image processing tool ImageMagick. Also described is how to generate PDF documents, Gruff, and accessing images via databases.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
18 of 21 people found the following review helpful:
4.0 out of 5 stars A fine collection of problems and solutions, April 5, 2007
By A Williams "honestpuck" (Neutral Bay, NSW Australia) - See all my reviews
(REAL NAME)      
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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 6 people found the following review helpful:
4.0 out of 5 stars A good reference for solving problems, February 23, 2007
I've read Agile Development with Rails and Rails Recipes, but this book was still helpful for me. ADWR is more of a "This is how it works" while this book, like Rails Recipes, is a "Here's how to do the things you want to do" kind of book. I liked that the sections are presented in a problem/solution format; if you don't want to solve that problem, keep flipping. The recipes covered a range of beginner to more advanced topics: from installing rails to RESTful development, to invaluable information on different ways to deploy your rails application. The writing is straightforward, and I found it much easier to read and understand than Rails Recipes (IMHO). I have a feeling I'll be going back to reference this book frequently.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Nice work
I used this book for a grad class project that had to do with building multimedia database system with Ruby on Rails framework. Read more
Published 16 months ago by Siddhardha

5.0 out of 5 stars Practical book for working programmers.
The "Rails Cookbook" is a very useful book for the working programmer.

Programming is all about solving problems, and that is exactly what this book is about. Read more
Published 22 months ago by J. Pease

5.0 out of 5 stars Love the recipie format
Now that I've encountered a few recipies books, I have to admit I'm in love with the format. I proves very practical and much easier to use.
Published on June 19, 2007 by Mr. Mario T. Lanza

4.0 out of 5 stars Essential once you start building your first app
Probably my most worn RoR book. It doesn't teach you Ruby or Rails since it's really a how-to book. Read more
Published on June 7, 2007 by Loc Nguyen

5.0 out of 5 stars Will reach both programmers and serious programming libraries.
Web programmers and practicing developers working with Rails will want this solution-oriented guide to building web 2. Read more
Published on May 7, 2007 by Midwest Book Review

4.0 out of 5 stars Very good considering how fast things change
This book is really quite good for the "advanced beginner" to intermediate level of Rails developer. Read more
Published on March 25, 2007 by chris chau

5.0 out of 5 stars Writing Ruby on Rails Code? You Need This Book.
I think it's safe to assume the following:
1) Ruby on Rails is hot.
2) Many of us are coming over from other languages (C++, C#, Java) and frameworks (. Read more
Published on March 11, 2007 by Larry

4.0 out of 5 stars Worth Buying
If you like Cookbooks like I do I highly recommend you get this book. It's not a huge book but it does a pretty good job with what it does cover. Read more
Published on February 16, 2007 by Neil Moomey

5.0 out of 5 stars Excellent book
This is one of the best book about Rails. It is very well written and is easy for a beginner to accomplish the goal of each recipe. Read more
Published on February 14, 2007 by uml_zepho_com

5.0 out of 5 stars Excellent guidebook and reference
I read a pre-release version of this book and was very impressed with the quality and breadth of the content. Read more
Published on January 19, 2007 by Thomas Lockney

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Cut Wood Down to Size

Cut Wood Down to Size

Split wood with ease using a log splitter from the Outdoor Power & Lawn Equipment Store.

Shop all log splitters

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Pure and Simple

Shop for water filters
Use water filtration products to reduce the amount of sediment and the taste and odor of chlorine in your water.

Shop for water filters

 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates