mvcoffee-rails is the server-side portion of the MVCoffee suite of tools. It is a Rails gem that works closely with the client-side library to make sure the client has what it needs and the two are in sync. It does this by:
- Including the
- Building and serving the JSON that the client expects. The client needs more than just a JSON representation of the data to be fetched. It uses extra information, such as the flash, session, a possible redirect, and instructions for cache management. This gem provides a
@mvcoffeeobject that makes building that JSON in the right format easy.
- Optionally “monkeypatching” the
redirect_tomethods to unify
jsonrequests and serve the needed JSON for you.
- Instructing models to support client-side caching.