web services - How can I customize the way Rails 4 render() finds files? -
I am serving an enhanced web service by rail.
I would like to be very capable to render as normal:
render index '
and it is correctly Serve the requested version with the following:
index.v1.json.jbuilder index.v2.json.jbuilder index.v3.json.jbuilder
Assuming that I already know in the context of the version controller action executed, execution, how can I provide it to take advantage of it?
I
You should definitely see the file name you have Will be near:
index.v1.json.jbuilder
will
Index.json.v1.jbuilder < / Code>
Comments
Post a Comment