map(&:name).join(',')
Am 09.12.2010 um 13:01 schrieb Werner Laude:
> Hallo - wieder mal ein Frage von mir.. ;-)
>
> <% @seminar.therapists.each do |therapist| %>
>
> <%=therapist.name %>
>
> <% end %>
>
> Möchte zwischen den Namen ein 'und' oder Komma/Strich, aber eben nicht nach
> dem letzten Eintrag.
>
> Hat da jemand etwas Code oder einen link?
>
>
>
> Werner Laude
> http://www.webagentur-laude.de
>
>
>
>
>
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/listinfo/rubyonrails-ug
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug