Brauche mal wieder etwas Unterstützung.
Leider finde ich keine passenden snippets.
bisher:
im Controller..
pic = File.join("**", "images/deko", "*.jpg")
@pictures = Dir.glob(pic)
und um überhaupt erst mal ..
<%= for pic in @pictures %>
<%=pic%>
<%end%>
ergibt Fehler.. damit kann ich nichts anfangen:
syntax error, unexpected ')', expecting kDO_COND or ':' or '\n' or ';'
_erbout.concat(( for pic in @pictures ).to_s); _erbout.concat "\n"
Gruß Werner
--
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