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

Overview

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

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (21) from $1.99   
  • New (3) from $45.00   
  • Used (18) from $1.99   
Close
Sort by
Page 1 of 1
Showing 1 – 2 of 3
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$45.00
Seller since 2015

Feedback rating:

(240)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$45.00
Seller since 2015

Feedback rating:

(240)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing 1 – 2 of 3
Close
Sort by
Sending request ...

Overview

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 Recipes keeps you on the cutting edge of Rails development and, more importantly, continues to turn this fast-paced framework to your advantage.

Advanced Rails Recipes is 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, JamieOrchard-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.

From the author of the indispensable "Rails Recipes," and with the help of a new master Rails chef in the kitchen, here are 72 new ways to kick one's Ruby on Rails apps up a notch--a collection of practical recipes for dressing up one's Wzeb application with little fuss.

Read More Show Less

Product Details

  • ISBN-13: 9780978739225
  • Publisher: Pragmatic Programmers, LLC, The
  • Publication date: 5/1/2008
  • Series: Pragmatic Programmers Series
  • Edition number: 1
  • Pages: 464
  • Product dimensions: 7.50 (w) x 8.90 (h) x 1.00 (d)

Meet the Author

Clark is a consultant, author, speaker, and programmer. He helps teams build better software faster through his company, Clarkware Consulting, Inc.

Read More Show Less

Table of Contents

Introduction 1

Pt. I REST and Routes Recipes 7

1 Create a RESTful Resource 9

2 Add Your Own RESTful Actions 15

3 Nest Resources to Scope Access 19

4 Toggle Attributes with Ajax 25

5 Authenticate REST Clients 29

6 Respond to Custom Formats 35

7 Catch All 404s 39

Pt. II Database Recipes 43

8 Add Foreign Key Constraints 45

9 Write Custom Validations 49

10 Take Advantage of Master/Slave Databases 53

11 Siphon Off SQL Queries 57

12 Use Fixtures for Canned Datasets 61

Pt. III User-Interface Recipes 65

13 Handle Multiple Models in One Form 67

14 Replace In-View Raw JavaScript 75

15 Validate Required Form Fields Inline 77

16 Create Multistep Wizards 81

17 Customize Error Messages 91

18 Upload Images with Thumbnails 93

19 Decouple JavaScript with Low Pro 103

20 Format Dates and Times 111

21 Support an iPhone Interface 115

Pt. IV Search Recipes 121

22 Improve SEO with Dynamic Metatags 123

23 Build a Site Map 127

24 Find Stuff (Quick and Dirty) 133

25 Search Text with Ferret 137

26 Ultra-Search with Sphinx 143

27 Solr-Power Your Search 151

Pt. V Design Recipes 163

28 Freshen Up Your Models with Scope 165

29 Create Meaningful Relationships Through Proxies 171

30 Keep Forms DRY and Flexible 175

31 Prevent Train Wrecks 181

32 Simplify Controllers with a Presenter 185

Pt. VI Integration Recipes 191

33 Process Credit Card Payments 193

34 Play Nice with Facebook 205

35 Mark Locations on a Google Map 207

36 Tunnel Back to Your Application 215

Pt. VII Console Snacks 219

37 Write Console Methods 221

38 Log to the Console 223

39 Play in the Sandbox 225

40 Access Helpers 227

41 Shortcut the Console 229

Pt. VIIIAsynchronous-Processing Recipes 231

42 Send Lightweight Messages 233

43 Off-Load Long-Running Tasks to BackgrounDRb 237

44 Process Asynchronous, State-Based Workflows 245

Pt. IX E-mail Recipes 251

45 Validate E-mail Addresses 253

46 Receive E-mail Reliably via POP or IMAP 257

47 Send E-mail via Gmail 263

48 Keep E-mail Addresses Up-to-Date 265

Pt. X Testing Recipes 271

49 Maintain Fixtures Without Frustration 273

50 Describe Behavior from the Outside In with RSpec 277

51 Test First with Shoulda 285

52 Write Domain-Specific RSpec Matchers 291

53 Write Custom Testing Tasks 295

54 Test JavaScript with Selenium 297

55 Mock Models with FlexMock 303

56 Track Test Coverage with rcov 307

57 Automatically Validate HTML 311

58 Mock with a Safety Net 315

59 Drive a Feature Top-Down with Integration Tests 317

Pt. XI Performance and Scalability Recipes 321

60 Cache Data Easily 323

61 Look Up Constant Data Efficiently 327

62 Profile in the Browser 333

63 Cache Up with the Big Guys 337

64 Dynamically Update Cached Pages 345

65 Use DTrace for Profiling 349

Pt. XII Security Recipes 357

66 Constrain Access to Sensitive Data 359

67 Encrypt Sensitive Data 361

68 Flip On SSL 367

Pt. XIII Deployment and Capistrano Recipes 371

69 Upload Custom Maintenance Pages 373

70 Generate Custom Error (404 and 500) Pages 377

71 Write Config Files on the Fly 381

72 Create New Environments 383

73 Run Multistage Deployments 387

74 Safeguard the Launch Codes 391

75 Automate Periodic Tasks 393

76 Preserve Files Between Deployments 399

77 Segregate Page Cache Storage with Nginx 401

78 Load Balance Around Your Mongrels' Health 405

79 Respond to Remote Capistrano Prompts 411

80 Monitor (and Repair) Processes with Monit 413

Pt. XIV Big-Picture Recipes 417

81 Manage Plug-in Versions 419

82 Fail Early 423

83 Give Users Their Own Subdomain 425

84 Customize and Analyze Log Files 431

Bibliography 437

Index 439

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
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted April 7, 2010

    No text was provided for this review.

  • Anonymous

    Posted September 14, 2010

    No text was provided for this review.

Sort by: Showing all of 2 Customer Reviews

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