开发者

Problem implementing a 2 levels association using rails3-amf

开发者 https://www.devze.com 2023-04-09 09:08 出处:网络
I\'m using https://github.com/warhammerkid/rails3-amf , and can\'t implement a two level association as follows:

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

精彩评论

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