Could you tell me


#1

Hi guys
I met a situation like this:

ids = params[:ids]
Blog.find(:all,
:conditions=>[“id in (?)”, ids])

debug, sql is:
SELECT * FROM blogs WHERE (id in (‘8,6’))

any guy can tell me how to solve this kind of problem

all regards


#2

Blog.find(ids) would solve this problem.