Rails - How do I write this string condition as an array condition

Posted by adam on Stack Overflow See other posts from Stack Overflow or by adam
Published on 2010-04-27T07:43:23Z Indexed on 2010/04/27 14:43 UTC
Read the original article Hit count: 331

Filed under:
|
named_scope :correct, :include => :correction, :conditions => "checked_at IS NOT NULL AND corrections.id IS NULL"

On a side note I have googled loads and looked through books but i cant seem to find a list of all the various types of conditions you can use and how they differ when implenting them as strings, arrays or hashes.

Is there a list of the syntax anywhere?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about condition