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...
Gruß
Manuel
Werner Laude schrieb:
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
>
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug