Forum: Rails Germany many to many select

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Werner L. (Guest)
on 2009-03-27 14:25
(Received via mailing list)
Bei einer
has and belongs to many
Listenansicht möchte ich gerne
bei der db Abfrage select verwenden um nur die relevanten Daten zu
laden.

Bisher habe ich:

named_scope :seminars, :conditions=>["category_id =?", 2], :select =>
' title, start, name', :order => 'start'

Ich benötige aber noch Daten aus der join tabelle. Wie kann ich das in
das select statement einbauen?

Gruß+Danke



Werner L.
Lindenburger Allee 22  -  50931
Köln
0221.8805 635

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://www.webagentur-laude.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This topic is locked and can not be replied to.