O'Reilly logo

Crafting Rails 4 Applications, 2nd Edition by José Valim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required