Reputation: 15384
If i have this simple block
<% p.sectors.each do |s| %>
<%= s.name %>
<% end %>
That iterates through all of the sectors , how would i get the results to print out in a comma separated sentence, so something like this
web design, web development, Software testing
There is a method called to_sentence but is that relevant here and how do i apply this method?
Thanks
Upvotes: 1
Views: 492