i have issue. This below code is the views code of ruby in rails 

```
<table >
<tr>
    <th>Url</th>
    <th>Tags</th>
</tr>   
 <% @array_bookmark = @bookmark.class == Array ? @bookmark : [@bookmark] %> 
 <% Array(@bookmark).each do |book| %>
 <tr>
 <td><%= book.url %></td>
 <td><%= book.tags %></td>
 </tr>
 <% end %>
 </table>

```

This yields something like :

```
  Url                   Tags
 www.mrabhiram.tumblr.com   abhi
 www.mrabhiram.tumblr.com   blog
 google.com                 google
 google.com                 blog

```

But, i want to get it as 

```
  Url                   Tags
 www.mrabhiram.tumblr.com   abhi,blog
 google.com                 google,blog

```

Can anyone provide me the solution? It should be generic enough to iterate over the array. 

Thank you in advance.