
Advanced Rails Recipes : 84 New Ways to Build Stunning Rails Apps
by Clark, MikeRent Book
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
Table of Contents
Introduction | p. 1 |
REST and Routes Recipes | p. 7 |
Create a RESTful Resource | p. 9 |
Add Your Own RESTful Actions | p. 15 |
Nest Resources to Scope Access | p. 19 |
Toggle Attributes with Ajax | p. 25 |
Authenticate REST Clients | p. 29 |
Respond to Custom Formats | p. 35 |
Catch All 404s | p. 39 |
Database Recipes | p. 43 |
Add Foreign Key Constraints | p. 45 |
Write Custom Validations | p. 49 |
Take Advantage of Master/Slave Databases | p. 53 |
Siphon Off SQL Queries | p. 57 |
Use Fixtures for Canned Datasets | p. 61 |
User-Interface Recipes | p. 65 |
Handle Multiple Models in One Form | p. 67 |
Replace In-View Raw JavaScript | p. 75 |
Validate Required Form Fields Inline | p. 77 |
Create Multistep Wizards | p. 81 |
Customize Error Messages | p. 91 |
Upload Images with Thumbnails | p. 93 |
Decouple JavaScript with Low Pro | p. 103 |
Format Dates and Times | p. 111 |
Support an iPhone Interface | p. 115 |
Search Recipes | p. 121 |
Improve SEO with Dynamic Metatags | p. 123 |
Build a Site Map | p. 127 |
Find Stuff (Quick and Dirty) | p. 133 |
Search Text with Ferret | p. 137 |
Ultra-Search with Sphinx | p. 143 |
Solr-Power Your Search | p. 151 |
Design Recipes | p. 163 |
Freshen Up Your Models with Scope | p. 165 |
Create Meaningful Relationships Through Proxies | p. 171 |
Keep Forms DRY and Flexible | p. 175 |
Prevent Train Wrecks | p. 181 |
Simplify Controllers with a Presenter | p. 185 |
Integration Recipes | p. 191 |
Process Credit Card Payments | p. 193 |
Play Nice with Facebook | p. 205 |
Mark Locations on a Google Map | p. 207 |
Tunnel Back to Your Application | p. 215 |
Console Snacks | p. 219 |
Write Console Methods | p. 221 |
Log to the Console | p. 223 |
Play in the Sandbox | p. 225 |
Access Helpers | p. 227 |
Shortcut the Console | p. 229 |
Asynchronous-Processing Recipes | p. 231 |
Send Lightweight Messages | p. 233 |
Off-Load Long-Running Tasks to BackgrounDRb | p. 237 |
Process Asynchronous, State-Based Workflows | p. 245 |
E-mail Recipes | p. 251 |
Validate E-mail Addresses | p. 253 |
Receive E-mail Reliably via POP or IMAP | p. 257 |
Send E-mail via Gmail | p. 263 |
Keep E-mail Addresses Up-to-Date | p. 265 |
Testing Recipes | p. 271 |
Maintain Fixtures Without Frustration | p. 273 |
Describe Behavior from the Outside In with RSpec | p. 277 |
Test First with Shoulda | p. 285 |
Write Domain-Specific RSpec Matchers | p. 291 |
Write Custom Testing Tasks | p. 295 |
Test JavaScript with Selenium | p. 297 |
Mock Models with FlexMock | p. 303 |
Track Test Coverage with rcov | p. 307 |
Automatically Validate HTML | p. 311 |
Mock with a Safety Net | p. 315 |
Drive a Feature Top-Down with Integration Tests | p. 317 |
Performance and Scalability Recipes | p. 321 |
Cache Data Easily | p. 323 |
Look Up Constant Data Efficiently | p. 327 |
Profile in the Browser | p. 333 |
Cache Up with the Big Guys | p. 337 |
Dynamically Update Cached Pages | p. 345 |
Use DTrace for Profiling | p. 349 |
Security Recipes | p. 357 |
Constrain Access to Sensitive Data | p. 359 |
Encrypt Sensitive Data | p. 361 |
Flip On SSL | p. 367 |
Deployment and Capistrano Recipes | p. 371 |
Upload Custom Maintenance Pages | p. 373 |
Generate Custom Error (404 and 500) Pages | p. 377 |
Write Config Files on the Fly | p. 381 |
Create New Environments | p. 383 |
Run Multistage Deployments | p. 387 |
Safeguard the Launch Codes | p. 391 |
Automate Periodic Tasks | p. 393 |
Preserve Files Between Deployments | p. 399 |
Segregate Page Cache Storage with Nginx | p. 401 |
Load Balance Around Your Mongrels' Health | p. 405 |
Respond to Remote Capistrano Prompts | p. 411 |
Monitor (and Repair) Processes with Monit | p. 413 |
Big-Picture Recipes | p. 417 |
Manage Plug-in Versions | p. 419 |
Fail Early | p. 423 |
Give Users Their Own Subdomain | p. 425 |
Customize and Analyze Log Files | p. 431 |
Bibliography | p. 437 |
Index | p. 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.