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