Rails 3 ã«ãªã£ã¦ Active Record ã« Arel ã¨ããæ©æ§ãé©ç¨ãããããããå©ç¨ãããã¨ã§ãActive Record ã®ãµãã¯ã©ã¹ã«å¯¾ãã¦ã¡ã½ãããã§ã¤ã³ã®ããã«SQLã¯ã¨ãªãæ§æããçºè¡ãããã¨ãã§ããã*1 ä¾ãã°ä»¥ä¸ã®ããã«ã¯ã¨ãªãæ§æã§ããã ruby-1.9.2-p0 > Person.where('age > ?', 10) => [#<Person id:1, name:"taro", age:24>, #<Person id:2, name:"jiro", age:13>]ããã¦ã¡ã½ãããã§ã¤ã³ã«ãã£ã¦æ¤ç´¢æ¡ä»¶ã追å ã ruby-1.9.2-p0 > Person.where('age > ?', 10).where('age < ?', 20) => [#<Person id:2, name:"jiro", age:13>]to_sql ã«ãã£ã¦å©
{{#tags}}- {{label}}
{{/tags}}