Ready to go to the next level with Rails? From examining the parts of Ruby that make this framework possible to deploying large Rails applications, Advanced Rails offers you an in-depth look at techniques for dealing with databases, security, performance, web services and much more.

Chapters in this book help you understand not only the tricks and techniques used within the Rails framework itself, but also how to make use of ideas borrowed from other programming paradigms. Advanced Rails pays particular attention to building applications that scale -- whether "scale" means handling more users, or working with a bigger and more complex database. You'll find plenty of examples and code samples that explain:

When to use the Active Support library for generic, reusable functions

Security principles for web application design, and security issues endemic to the Web

When and when not to optimize performance

Why version control and issue tracking systems are essential to any large or long-lived Rails project

Advanced Rails also gives you a look at REST for developing web services, ways to incorporate and extend Rails, how to use internationalization, and many other topics. If you're just starting out with rails, or merely experimenting with the framework, this book is not for you. But if you want to improve your skills with Rails through advanced techniques, this book is essential.

Brad Ediger

Brad Ediger is the CTO of Tasman Labs, a real-estate technologycompany. Together with his wife Kristen, a web designer, Brad ownsMadriska Media Group, a firm specializing in custom applicationdevelopment. When not programming, Brad enjoys playing variousmusical instruments and watching obscure films.

The animal on the cover of Advanced Rails is a common, or Burchell's, zebra (Equus burchellii). Members of the horse family (equids), common zebras grow to a height of 45-55 inches at the shoulder and weigh 485-550 pounds. They have excellent hearing and eyesight (their night vision is comparable to that of cats or owls), and can run as fast as 35 miles per hour. Common zebras inhabit East African savannas, from treeless grasslands to open woodlands; tens of thousands of them can be found in migratory herds on the Serengeti plains. They are herbivores and feed mostly on grasses and occasionally leaves or stems. They graze for many hours each day; a zebra's teeth grow throughout its lifetime to counteract the wearing that occurs from such constant feeding.

Zebras are social herd animals, and the social system of the common zebra is based on a "harem" of females led by a stallion. Stallions compete for fillies that have come into their first estrus, and the filly will stay permanently with the stallion that succeeds in mating with her. Foals are dark brown and white at birth, and can walk a mere 20 minutes after birth and run within an hour. This allows them to keep up with the rest of the herd as it searches for food and water. Family groups stay together within the larger group. Communication plays a key role in the herd as well; the zebras communicate with a variety of sounds, such as barking and snorting, and with facial expressions and ear position. They even greet each other with a "smile"--a bared-teeth grimace that discourages aggression. Shared grooming further reinforces the bonds between them; they nibble at one another to remove loose hair or to help scratch those hard-to-reach spots.

Of course, the most prominent and recognizable feature of a zebra is its black and white stripes. The pattern of stripes on a zebra is as distinct as a human's fingerprints; in fact, scientists can identify individual zebras by comparing patterns, stripe widths, coloring, and scars. The stripes help serve as protection against predators in the wild such as leopards and lions; when the herd is grouped together, it is hard for the cats to discern a specific zebra to pursue. Interestingly, zebras are attracted to black and white stripes; even if the stripes are painted on a wall, a zebra will tend to migrate to them.

This book brings up lots of interesting topics (metaprogramming, debugging rails, databases). It's pretty fast phased and it may not be as polished as you'd might expect from an O'reilly book but I still think this is a great book picking up.

This book is unbelievable.I never read something as cluttered, poorly written, useless as this book.It's complete gibberish. Don't buy it, instead write a book about Rails by yourself. I'm sure you'll end up with something far better than this "book".