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
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
精彩评论