我正在使用https://github.com/warhammerkid/rails3-amf,并且无法实现以下两级关联:
@posts = Post.where(:category_id => params[:id]).includes(:author => :phones)
respond_with(@posts) do |format|
format.amf { render :amf => @posts.to_amf( :include => ???? ) }
end
任何sugestions?