阅读背景:

AR.to_json在控制台中工作,在浏览器中失败

来源:互联网 

I have this block of code:

我有这段代码:

users = Array.new
users << User.find(:all, :conditions => ["email like ?", "%foo%"])
users << User.find(:all, :conditions => ["name like ?", "%bar%"])
users.flatten!
users.uniq!
puts users.to_json :include => [:licenses]
users = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: