Overview

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

See more details below
Advanced Rails

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

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.
Read More Show Less

Product Details

  • ISBN-13: 9780596555085
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 12/21/2007
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 368
  • File size: 4 MB

Meet the Author

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.

Read More Show Less

Table of Contents

1 Foundational Techniques 1
What Is Metaprogramming? 1
Ruby Foundations 4
Metaprogramming Techniques 23
Functional Programming 36
Examples 41
Further Reading 45
2 ActiveSupport and RailTies 46
Ruby You May Have Missed 46
How to Read Code 49
ActiveSupport 57
Core Extensions 60
RailTies 75
Further Reading 78
3 Rails Plugins 79
About Plugins 79
Writing Plugins 83
Plugin Examples 85
Testing Plugins 90
Further Reading 95
4 Database 96
Database Management Systems 96
Large/Binary Objects 101
Advanced Database Features 109
Connecting to Multiple Databases 116
Caching 119
Load Balancing and High Availability 120
Ldap 124
Further Reading 126
5 Security 127
Application Issues 127
Web Issues 137
SQL Injection 144
Ruby's Environment 145
Further Reading 146
6 Performance 147
Measurement Tools 148
Rails Optimization Example 155
ActiveRecord Performance 165
Architectural Scalability 173
Other Systems 181
Further Reading 184
7 REST, Resources, and Web Services 185
What's REST? 185
Benefits of a RESTful Architecture 205
RESTful Rails 209
Case Study: Amazon S3 231
Further Reading 235
8 i18n and L10n 236
Locale 236
Character Encodings 237
Unicode 238
Rails and Unicode 241
Rails L10n 250
Further Reading 269
9 Incorporating and Extending Rails 271
Replacing Rails Components 271
Incorporating Rails Components 284
Contributing to Rails 289
Further Reading 295
10 Large Projects 296
Version Control 296
Issue Tracking 308
Project Structure 309
Rails Deployment 315
Further Reading 322
Index 325
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)