Hello, I have this model Item has_many :tasks Task belongs_to :item I have a filter @task_pages, @tasks =paginate :tasks, :per_page => 10, :conditions => ["company_id = ?'', company_id] How can I use a set of Items to return some records in Tasks, and use it in Paginate? Item.find (:all, :conditions => [''model = ?'',''KJ-393'']) and paginate just the tasks thar belongs to this Items? Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---