Rails Core developer Jose Valim guides you through seven different tutorials, each of them using test-driven development to build a new Rails extension or application that solves common problems with these new APIs. You will understand how the Rails rendering stack works and customize it to read tem
Crafting Rails Applications: Expert Practices for Everyday Rails Development
โ Scribed by Jose Valim
- Publisher
- Pragmatic Bookshelf
- Year
- 2011
- Tongue
- English
- Leaves
- 177
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Rails Core developer Jose Valim guides you through seven different tutorials, each of them using test-driven development to build a new Rails extension or application that solves common problems with these new APIs. You will understand how the Rails rendering stack works and customize it to read templates from the database while you learn how to mimic Active Record behavior, like validations, in any other object. You will find out how to write faster, leaner controllers, and you'll learn how to mix Sinatra applications into your Rails apps, so you can choose the most appropriate tool for the job. In addition, you will improve your productivity by customizing generators and responders. This book will help you understand Rails 3's inner workings, including generators, template handlers, internationalization, routing, and responders. With the knowledge you'll gain, you'll be ready to tackle complicated projects more easily than ever before, creating solutions that are well-tested, modular, and easy to maintain.
โฆ Table of Contents
Contents......Page 5
Acknowledgments......Page 7
Who Should Read This Book?......Page 8
What Is in the Book?......Page 9
Online Resources......Page 11
Creating Our Own Renderer......Page 12
Generating Projects with Enginex......Page 13
Writing the Renderer......Page 18
Understanding Rails Rendering Stack......Page 22
Taking It to the Next Level......Page 27
Wrapping Up......Page 29
Creating Our Model......Page 30
Taking It to the Next Level......Page 46
Wrapping Up......Page 50
Retrieving View Templates from Custom Stores......Page 52
Setting Up a SqlResolver......Page 54
Configuring Our Resolver for Production......Page 62
Serving Templates with Metal......Page 68
Wrapping Up......Page 72
Sending Multipart Emails Using Template Handlers......Page 74
Playing with the Template Handler API......Page 76
Building a Template Handler with Markdown + ERb......Page 80
Customizing Rails Generators......Page 85
Extending Rails with Railties......Page 92
Wrapping Up......Page 94
Managing Application Events with Rails Engines......Page 97
Storing Notifications in the Database......Page 98
Extending Rails with Engines......Page 102
Rails and Rack......Page 106
Storing Notifications Asynchronously......Page 115
Wrapping Up......Page 118
Writing DRY Controllers with Responders......Page 120
Understanding Responders......Page 122
Exploring ActionController::Responder......Page 125
The Flash Responder......Page 129
HTTP Cache Responder......Page 135
More Ways to Customize Generators......Page 139
Wrapping Up......Page 145
Translating Applications Using Key-Value Backends......Page 147
Revisiting Rails::Application......Page 148
I18n Backends and Extensions......Page 150
Rails and Sinatra......Page 153
Understanding the Rails Router......Page 159
Taking It to the Next Level with Devise and Capybara......Page 161
Wrapping Up......Page 168
A......Page 170
H......Page 171
O......Page 172
S......Page 173
Y......Page 174
๐ SIMILAR VOLUMES
<DIV><p>Rails 3 is a huge step forward. You can now easily extend the framework, change its behavior, and replace whole components to bend it to your will, all without messy hacks. This pioneering book is the first resource that deep dives into the new Rails 3 APIs and shows you how use them to writ
Rails 3 is a huge step forward. You can now easily extend the framework, change its behavior, and replace whole components to bend it to your will, all without messy hacks. This pioneering book is the first resource that deep dives into the new Rails 3 APIs and shows you how to use them to write bet
Get ready to see Rails as you've never seen it before. Learn how to extend the framework, change its behavior, and replace whole components to bend it to your will. Eight different test-driven tutorials will help you understand Rails' inner workings and prepare you to tackle complicated projects wit
<DIV><p>Get ready to see Rails as you've never seen it before. Learn how to extend the framework, change its behavior, and replace whole components to bend it to your will. Eight different test-driven tutorials will help you understand Rails' inner workings and prepare you to tackle complicated proj
Creating our own renderer -- Building models with active models -- Retrieving view templates from custom stores -- Sending multipart emails using template handlers -- Streaming server events to clients asynchronously -- Writing DRY controllers with responders -- Managing application events with moun