Ich sach mal, das sollte in allen drei Fällen funktionieren. Hab's grad' mal bei mir getestet.

Ich würde in dem Falle mal nachschauen, ob das Feld "online" tatsächlich als Integer-Feld vorliegt. Isses denn eine MySQL-Datenbank, die darunter liegt?

Werner Laude schrieb:
Hallo, ich bekomme was nicht hin...

t.column "online", :boolean, :default =>0

@quest = Question.find(:all, :conditions => ['online = ?', '1'])
oder auch
:conditions => ['online = ?', true],
oder auch
Question.find_all_by_online(true)

sortiert nichts aus..es werden immer alle Datensätze gezeigt..
Tipp  ?

Gruß



------------------------------------------------------------------------

_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

--

------------------------------
galt.de Web :-) Services
Michael Kastner
Berliner Straße 3
D-65439 Flörsheim

Telefon +49 (0) 6145 / 938 581
Telefax +49 (0) 6145 / 938 582
E-Mail [EMAIL PROTECTED]
Homepage http://www.galt.de
------------------------------
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an