Displaying 1 result from an estimated 1 matches for "_degrades_".
Did you mean:
_degraded_
2012 Sep 15
10
Versioning of Views; Our Approach
...on.jbuilder
show.v1.json.jbuilder
create.v2.json.jbuilder
create.v1.json.jbuilder
The developer pre-defines all view versions in their config. When a
specific view version is specified (via a header or request param) , if the
version of that view exists, it is rendered, otherwise, the request
_degrades_ to the previous version.
This makes it really handy for APIs/Jbuilder views. For example, if you
defined a new version for your API, e.g. v3, yet all other actions remain
the same, the degradation will automatically select the appropriate
backward compatible view (v2 for the create view abov...