开发者

Problem implementing a 2 levels association using rails3-amf

I'm using https://github.com/warhammerkid/rails3-amf , and can't implement a two level association as follows:

@posts = Post.where(:categ开发者_C百科ory_id => params[:id]).includes(:author => :phones)

respond_with(@posts) do |format|
  format.amf { render :amf => @posts.to_amf( :include => ???? ) }
end

Any sugestions?


rails3-amf is deprecated. Look here:

https://github.com/rubyamf/rubyamf

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜