Skip to content

Instantly share code, notes, and snippets.

@travisdmathis
Created November 14, 2013 02:27
Show Gist options
  • Select an option

  • Save travisdmathis/7460289 to your computer and use it in GitHub Desktop.

Select an option

Save travisdmathis/7460289 to your computer and use it in GitHub Desktop.
<% ActsAsTaggableOn::Tagging.find_all_by_context("tags").each do |tagging| %>
<%= link_to tagging.tag, tag_path(tagging.tag), :class => "btn btn-success btn-lg" %>
<% end %>
Output:
localhost/tags/1
Desired Output:
localhost/tags/TagName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment