Commit cc853045

mo khan <mo@mokhan.ca>
2013-06-22 14:44:26
use helper
1 parent 15e86a0
Changed files (1)
app
views
tutorial_tags
app/views/tutorial_tags/show.html.erb
@@ -28,7 +28,7 @@
             <h3><a href="<%= tutorial.url %>" target="_blank"><%= tutorial.heading %></a> <small><%= tutorial.created_at.to_s :foomat %></small></h3>
             <p>
             <% tutorial.tags.each do |tag| -%>
-              <a href="/tt/<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+              <a href="<%= url_for tutorial_tag_path(tag.name) %>"><span class="label"><%= tag.name %></span></a>
             <% end -%>
             </p>
             <p><%= tutorial.description %></p>