James Coglan
9/23/2008 11:57:00 AM
[Note: parts of this message were removed to make it a legal post.]
>
> some_test ? :conditions => "id=100" : nil
Try turning it inside out:
:conditions => (some_test ? "id=100" : nil)
or:
:conditions => (some_test && "id=100")
Not too sure about what the second one will cause Rails to do if some_test
is false rather than nil, but worth a try.