Skip to content

Instantly share code, notes, and snippets.

@brianburridge
Created March 27, 2012 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianburridge/2219745 to your computer and use it in GitHub Desktop.
Save brianburridge/2219745 to your computer and use it in GitHub Desktop.
Using html_safe and collect to create links to a post's tags
<%= post.tags.collect{|tag| link_to tag.name, forum_index_path(:tags => tag.name)}.join(' ').html_safe %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment