Forum: Ruby on Rails :conditions executed properly but get overwritten

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rabbit (Guest)
on 2005-12-13 23:34
(Received via mailing list)
Hi all. I'm doing a find(:all, :conditions => '...'), but the result
I'm given acts as though I did not provide any conditions.

My log file shows two queries - first is the correct one, with all
conditions included (when run against my database it returns the
expected result, so the query is good). The second query is simple a
SELECT * with NO conditions.

I'm executing find twice within my action, but the first has no
problems (it's also a find(:first) and not a find(:all)). Any ideas?

- Rabbit
This topic is locked and can not be replied to.