Caracal-Rails is a drop in solution for registering the Microsoft Word mime type and for establishing a template handler in Rails for the :docx format.  It also provides a helper method for accessing the document object which currently has context.