1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed first example in README (it was attempting to call #to_sql on an Arel::Table).

This commit is contained in:
Chris Berkhout 2011-04-27 18:49:06 +08:00
parent 113240e0b7
commit 4e8edb4aff

View file

@ -26,8 +26,8 @@ Generating a query with ARel is simple. For example, in order to produce
you construct a table relation and convert it to sql:
users = Arel::Table.new(:users)
users.project(Arel.sql('*'))
users.to_sql
query = users.project(Arel.sql('*'))
query.to_sql
### More Sophisticated Queries