Publisher: O'Reilly Media Released: December 2007 Pages: 368
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: - Aspects of Ruby that are often confusing or misunderstood
- Metaprogramming
- How to develop Rails plug-ins
- Different database management systems
- Advanced database features, including triggers, rules, and stored procedures
- How to connect to multiple databases
- 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. |
-
Chapter 1 Foundational Techniques -
What Is Metaprogramming? -
Ruby Foundations -
Metaprogramming Techniques -
Functional Programming -
Examples -
Further Reading -
Chapter 2 ActiveSupport and RailTies -
Ruby You May Have Missed -
How to Read Code -
ActiveSupport -
Core Extensions -
RailTies -
Further Reading -
Chapter 3 Rails Plugins -
About Plugins -
Writing Plugins -
Plugin Examples -
Testing Plugins -
Further Reading -
Chapter 4 Database -
Database Management Systems -
Large/Binary Objects -
Advanced Database Features -
Connecting to Multiple Databases -
Caching -
Load Balancing and High Availability -
LDAP -
Further Reading -
Chapter 5 Security -
Application Issues -
Web Issues -
SQL Injection -
Ruby's Environment -
Further Reading -
Chapter 6 Performance -
Measurement Tools -
Rails Optimization Example -
ActiveRecord Performance -
Architectural Scalability -
Other Systems -
Further Reading -
Chapter 7 REST, Resources, and Web Services -
What Is REST? -
Benefits of a RESTful Architecture -
RESTful Rails -
Case Study: Amazon S3 -
Further Reading -
Chapter 8 i18n and L10n -
Locale -
Character Encodings -
Unicode -
Rails and Unicode -
Rails L10n -
Further Reading -
Chapter 9 Incorporating and Extending Rails -
Replacing Rails Components -
Incorporating Rails Components -
Contributing to Rails -
Further Reading -
Chapter 10 Large Projects -
Version Control -
Issue Tracking -
Project Structure -
Rails Deployment -
Further Reading -
Colophon |
- Title:
- Advanced Rails
- By:
- Brad Ediger
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- December 2007
- Ebook:
- December 2008
- Pages:
- 368
- Print ISBN:
- 978-0-596-51032-9
- | ISBN 10:
- 0-596-51032-2
- Ebook ISBN:
- 978-0-596-15912-2
- | ISBN 10:
- 0-596-15912-9
|
-
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. View Brad Ediger's full profile page. |
Colophon 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. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Bruce A. Tate, Justin Gehtland
May 2004
Ebook: $27.99
Print & Ebook: $38.45
Print: $34.95
By Andrew Stellman, Jennifer Greene
March 2009
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
By Cory Doctorow, Rael Dornfest, Scott Johnson, Shelley Powers, Benjamin Trott, Mena G. Trott
August 2002
|
Customer Reviews
2/6/2012 (1 of 1 customers found this review helpful) By Joseph K. from San Jose, CA About Me Designer, Developer, Sys Admin - Difficult to understand
- Not comprehensive enough
- Too basic
- Too many errors
|
|
|