Manuel Wiedenmann schrieb:
Hallo Werner,

lass mal das = vor dem for weg, also so:

<% for pic in @pictures %>
<%= pic %>
<% end %>

der hat das so versucht als string auszugeben...

oh ja.. das ist nicht gut..#
allerdings bekomme ich jetzt nur ein nil object

Muß ich den Pfad anders beschreiben ? ist das unterschiedlich evt. unter Windows?

pic = File.join("**", "/images/deko", "*.jpg")
  @pictures = Dir.glob(pic)

Gruß

--

Werner Laude
Lindenburger Allee 22  |  50931 Köln

0221.8805 635

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

http://www.webagentur-laude.de

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

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

Antwort per Email an