阅读背景:

如何在json渲染中获取完整的belongs_to对象?

来源:互联网 

Basically, I have an object that belongs_to :companies, and has the :company_id attribute. When I render json: @coupons, is it possible for the JSON to contain an attribute of its owner rather than the company_id?Basically, I have an object that belongs_to :co




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: