>> a
  => [6, 8, 10, 12, 14]
  >&开发者_JS百科gt; @project.posts(:all, :conditions => [ "id not in (?)", a ])
  => [#<Post id: 6,........
Why is this not filtering the POst with id of 6
I think you need to use @project.posts.find(:all, :conditions => .....). The method call of just the association itself takes one parameter which indicates whether to reload the association or not.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论