Created
March 27, 2012 20:00
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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