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
on 2005-11-29 18:19
on 2005-11-29 18:41
Blog.find(ids) would solve this problem.