Advanced Rails Recipes : 84 New Ways to Build Stunning Rails Apps

by
Format: Paperback
Pub. Date: 2008-05-01
Publisher(s): Oreilly & Associates Inc
List Price: $38.95

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Ruby on Rails continues to build up a tremendous head of steam. Fueled by significant benefits and an impressive portfolio of real-world applications already in production, Rails is destined to continue making significant inroads in coming years.Each new Rails application showing up on the web adds yet more to the collective wisdom of the Rails development community. Yesterday's best practices yield to today's latest and greatest techniques, as the state of the art is continually refined in kitchens all across the Internet. Indeed, these are times of great progress.At the same time, it's easy to get left behind in the wake of progress.Advanced Rails Recipeskeeps you on the cutting edge of Rails development and, more importantly, continues to turn this fast-paced framework to your advantage.Advanced Rails Recipesis filled with pragmatic recipes you'll use on every Rails project. And by taking the code in these recipes and slipping it into your application you'll not only deliver your application quicker, you'll do so with the confidence that it's done right.The book includes contributions from Aaron Batalion, Adam Keys, Adam Wiggins, Andre Lewis, Andrew Kappen, Benjamin Curtis, Ben Smith, Chris Bernard, Chris Haupt, Chris Wanstrath, Cody Fauser, Dan Benjamin, Dan Manges, Daniel Fischer, David Bock, David Chelimsky, David Heinemeier Hansson, Erik Hatcher, Ezra Zygmuntowicz, Geoffrey Grosenbach, Giles Bowkett, Greg Hansen, Gregg Pollack, Hemant Kumar, Hugh Bien, Jamie Orchard-Hays, Jamis Buck, Jared Haworth, Jarkko Laine, Jason LaPier, Jay Fields, John Dewey, Jonathan Dahl, Josep Blanquer, Josh Stephenson, Josh Susser, Kevin Clark, Luke Francl, Mark Bates, Marty Haught, Matthew Bass, Michael Slater, Mike Clark, Mike Hagedorn, Mike Mangino, Mike Naberezny, Mike Subelsky, Nathaniel Talbott, PJ Hyett, Patrick Reagan, Peter Marklund, Pierre-Alexandre Meyer, Rick Olson, Ryan Bates, Scott Barron, Tony Primerano, Val Aleksenko, and Warren Konkel.

Table of Contents

Introductionp. 1
REST and Routes Recipesp. 7
Create a RESTful Resourcep. 9
Add Your Own RESTful Actionsp. 15
Nest Resources to Scope Accessp. 19
Toggle Attributes with Ajaxp. 25
Authenticate REST Clientsp. 29
Respond to Custom Formatsp. 35
Catch All 404sp. 39
Database Recipesp. 43
Add Foreign Key Constraintsp. 45
Write Custom Validationsp. 49
Take Advantage of Master/Slave Databasesp. 53
Siphon Off SQL Queriesp. 57
Use Fixtures for Canned Datasetsp. 61
User-Interface Recipesp. 65
Handle Multiple Models in One Formp. 67
Replace In-View Raw JavaScriptp. 75
Validate Required Form Fields Inlinep. 77
Create Multistep Wizardsp. 81
Customize Error Messagesp. 91
Upload Images with Thumbnailsp. 93
Decouple JavaScript with Low Prop. 103
Format Dates and Timesp. 111
Support an iPhone Interfacep. 115
Search Recipesp. 121
Improve SEO with Dynamic Metatagsp. 123
Build a Site Mapp. 127
Find Stuff (Quick and Dirty)p. 133
Search Text with Ferretp. 137
Ultra-Search with Sphinxp. 143
Solr-Power Your Searchp. 151
Design Recipesp. 163
Freshen Up Your Models with Scopep. 165
Create Meaningful Relationships Through Proxiesp. 171
Keep Forms DRY and Flexiblep. 175
Prevent Train Wrecksp. 181
Simplify Controllers with a Presenterp. 185
Integration Recipesp. 191
Process Credit Card Paymentsp. 193
Play Nice with Facebookp. 205
Mark Locations on a Google Mapp. 207
Tunnel Back to Your Applicationp. 215
Console Snacksp. 219
Write Console Methodsp. 221
Log to the Consolep. 223
Play in the Sandboxp. 225
Access Helpersp. 227
Shortcut the Consolep. 229
Asynchronous-Processing Recipesp. 231
Send Lightweight Messagesp. 233
Off-Load Long-Running Tasks to BackgrounDRbp. 237
Process Asynchronous, State-Based Workflowsp. 245
E-mail Recipesp. 251
Validate E-mail Addressesp. 253
Receive E-mail Reliably via POP or IMAPp. 257
Send E-mail via Gmailp. 263
Keep E-mail Addresses Up-to-Datep. 265
Testing Recipesp. 271
Maintain Fixtures Without Frustrationp. 273
Describe Behavior from the Outside In with RSpecp. 277
Test First with Shouldap. 285
Write Domain-Specific RSpec Matchersp. 291
Write Custom Testing Tasksp. 295
Test JavaScript with Seleniump. 297
Mock Models with FlexMockp. 303
Track Test Coverage with rcovp. 307
Automatically Validate HTMLp. 311
Mock with a Safety Netp. 315
Drive a Feature Top-Down with Integration Testsp. 317
Performance and Scalability Recipesp. 321
Cache Data Easilyp. 323
Look Up Constant Data Efficientlyp. 327
Profile in the Browserp. 333
Cache Up with the Big Guysp. 337
Dynamically Update Cached Pagesp. 345
Use DTrace for Profilingp. 349
Security Recipesp. 357
Constrain Access to Sensitive Datap. 359
Encrypt Sensitive Datap. 361
Flip On SSLp. 367
Deployment and Capistrano Recipesp. 371
Upload Custom Maintenance Pagesp. 373
Generate Custom Error (404 and 500) Pagesp. 377
Write Config Files on the Flyp. 381
Create New Environmentsp. 383
Run Multistage Deploymentsp. 387
Safeguard the Launch Codesp. 391
Automate Periodic Tasksp. 393
Preserve Files Between Deploymentsp. 399
Segregate Page Cache Storage with Nginxp. 401
Load Balance Around Your Mongrels' Healthp. 405
Respond to Remote Capistrano Promptsp. 411
Monitor (and Repair) Processes with Monitp. 413
Big-Picture Recipesp. 417
Manage Plug-in Versionsp. 419
Fail Earlyp. 423
Give Users Their Own Subdomainp. 425
Customize and Analyze Log Filesp. 431
Bibliographyp. 437
Indexp. 439
Table of Contents provided by Blackwell. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.