I would like to disply a list of posts of selected users. From the following code, User.find_by... will return an array that holds multiple users. And then I want to select the list of the posts with the user_id stored in the array. However, "user_id LIKE @user" doesn''t work. This is somewhat I expected, but I don''t know how to solve this. Please help me :) @user = User.find_by... # find_by... function returns multiple user object conditions = ["user_id LIKE ?", @user] @post_pages, @posts = paginate :posts, :order => ''id DESC'', :conditions => conditions, :per_page => post_per_page -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---