Wrapping Up

We’ve covered a lot in this chapter. We analyzed Action View’s rendering stack and developed a resolver that reads templates from a database with cache-expiration mechanisms. Then we created a controller to dynamically access the pages in the resolver and optimized it by making it an ActionController::Metal object. If you’re eager to see more examples of using resolvers, check the Rails source code and discover how it implements the filesystem resolver, which retrieves templates from the filesystem.[21]

On the other hand, if you’re already familiar with Rails’s internals (such as resolvers and metal) and are still looking for a challenge, you can learn more about Ruby hashes by checking the Rubinius source code. Rubinius ...

Get Crafting Rails 4 Applications, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.