I want to have @messages return @folder.messages where the value of column \"deleted\" is NOT equal to true. I\'m not sure why this keeps throwing a SQLException. I guess
try
@ms = @msgs.where(["deleted != ?",true])