On Sep 1, 2014 3:35 AM, "Juan Sierra Pons" <j...@elsotanillo.net> wrote: > > Hi > > Finally I have changed to another kind on loop that works for my case > > uri<% @ldap_servers.each do |server| -%> > ldap://<%= server -%> > <% end %>
As you've found, an explicit loop, er, iterable is better than trying to use implicit conversion of an array to a string. An alternative is to use the 'join' method; that will put the separator only between the elements, rather than having to have it before or after each. This would be clearly better with a comma or other non-whitespace separator. Wil -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMmm3r69VGauQJ_kNaHvL_eVR3K_QwJb0LNrnBT2f9asSBnX9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.