Module: TagsHelper

Defined in:
app/helpers/tags_helper.rb

Instance Method Summary collapse

Instance Method Details

#tag_list(project) ⇒ Object


6
7
8
9
10
11
12
13
# File 'app/helpers/tags_helper.rb', line 6

def tag_list(project)
  html = ''
  project.tag_list.each do |tag|
    html << link_to(tag, tag_path(tag))
  end

  html.html_safe
end

#tag_path(tag) ⇒ Object


2
3
4
# File 'app/helpers/tags_helper.rb', line 2

def tag_path(tag)
  "/tags/#{tag}"
end