Hmm, so kann das Gedächtnis Streiche spielen. Ich dachte, ich hätte das schonmal
irgendwo gesehen.
Danke für den Hinweis.
Michael Kastner
Mathias Meyer schrieb:
On 14.09.2007, at 12:17, Michael Kastner wrote:
Hallo,
geht das nicht?
@articles = @topic.articles :conditions => ['active = ?', true]
Ich erhalte bei dieser Abfrage alle Artikel, aber ich will nur die
bekommen, die mit true gekennzeichnet sind.
Nein, das sollte so nicht funktionieren.
Ein Blick in die Doku hilft normalerweise weiter:
http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M000642
Siehe Eintrag collection.find.
Gruesse, Mathias
--
// Mathias Meyer
// PAPERPLANES SOFTWARE.ENTWICKLUNG
// www.paperplanes.de
// Gabriel-Max-Str. 3, 10245 Berlin
// meyer.at.paperplanes.de, 0163.765.27.47
------------------------------------------------------------------------
_______________________________________________
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