Rails provides an API that we can use to create our own renderers. In this chapter we explore the API as we modify the render()
method to accept :pdf
as an option and return a PDF created with Prawn.
To create a new plugin just run the following:
$ rails plugin new my_plugin
TODO Complete notes