[Nitro] Og: Custom selects

George Moschovitis george.moschovitis at gmail.com
Thu Jun 16 08:51:36 EDT 2005

> Would be nice to have something like this:
> Customer.select {|s|  s.category == 'Good' && s.name.like('Maier%') }
> This would create the SQL automatically for us:
>   "SELECT * FROM #{Customer.table} WHERE category = 'Good' and name like
> 'Maier%'"

Hello Michael,

this looks nice but I have no idea how to actually convert the block
to an sql string. Any tips?



More information about the Nitro-general mailing list