5
나는이 반환하는 함수가있는 경우 :이처럼 문서화하고마당에서 JSON을 렌더링하는 함수를 문서화 하시겠습니까?
render :json => @orders.as_json(include: [{:user => {only: :id}}], :only => [:id, :status_id])
을 :
# @return [JSON] includes the id, the order status id and the id of the associated user
반환 된 JSON 모양을 어떻게 문서의 더 나은 방법이 있는지 궁금 오전 .
더 나은 방법을 찾았습니까? – josal