开发者

to_json :include :order?

Is it possible to order includ开发者_如何学JAVAed models?

format.json { render :json => @client.to_json(:include => { :videos => { :order => 'sortorder' } }) }


You need made when you create your @client. In your SQL request

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜