Bootstrap class on individual tags in tag list
Hi Guys,
I am using the "acts as taggable on" gem and it's working perfectly. The issue I'm having is trying to style the individual tags in the list. I have the code below but it applys the pill style to the entire list rather than each tag. I have tried applying it to the "t" in the loop but its not working. Any help would be appriciated.
<%= raw article.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %>
here is what this is showing.