Hallo
Zwei Tabellen
model product
has_many :photos
model photo
belongs_to :product
View:
product => index
<% for product in @products %>
<%=product.photo.filename %>... undefined method `photo'
oder <%=product.photos %>.. keine Fehlermeldung, zeigt ne Raute
wie komme ich an die Photodaten? Die sollten doch in product enthalten
sein!
<%=product.photos.filename %> ..undefined method `filename
Filename ist aber drin.
Gruß
Werner
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug