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