Commit 531b4f4b

mo khan <mo@mokhan.ca>
2013-06-22 03:33:02
use rails helper to generate url to tag
1 parent 38964c5
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -33,7 +33,7 @@
     <% if @creation.tags.any? %>
       <span> <i class="icon-tags"></i> </span>
       <% @creation.tags.each do |tag| -%>
-        <a href="/tags/<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+        <a href="<%= url_for tag_path(tag.name) %>"><span class="label"><%= tag.name %></span></a>
       <% end -%>
     <% end -%>
     <div class="row">