Sha256: 94a428a3a90b967652524cff4b5e7064edc5a561c82a88d5352373c9b100dd9f

Contents?: true

Size: 293 Bytes

Versions: 25

Compression:

Stored size: 293 Bytes

Contents

module TagsHelper
  def tag_list taggable
    ''.html_safe.tap do |safe_string|
      taggable.tags.
        map(&:name).
        map{ |t| 
          safe_string << '<span rel="tag">'.html_safe
          safe_string << t
          safe_string << '</span>'.html_safe
        }
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/helpers/tags_helper.rb
social_stream-base-2.2.2 app/helpers/tags_helper.rb
social_stream-2.2.1 base/app/helpers/tags_helper.rb
social_stream-base-2.2.1 app/helpers/tags_helper.rb
social_stream-2.2.0 base/app/helpers/tags_helper.rb
social_stream-base-2.2.0 app/helpers/tags_helper.rb
social_stream-2.1.1 base/app/helpers/tags_helper.rb
social_stream-2.1.0 base/app/helpers/tags_helper.rb
social_stream-base-2.1.0 app/helpers/tags_helper.rb
social_stream-2.0.4 base/app/helpers/tags_helper.rb
social_stream-base-2.0.4 app/helpers/tags_helper.rb
social_stream-2.0.3 base/app/helpers/tags_helper.rb
social_stream-base-2.0.3 app/helpers/tags_helper.rb
social_stream-2.0.2 base/app/helpers/tags_helper.rb
social_stream-base-2.0.2 app/helpers/tags_helper.rb
social_stream-2.0.1 base/app/helpers/tags_helper.rb
social_stream-base-2.0.1 app/helpers/tags_helper.rb
social_stream-2.0.0 base/app/helpers/tags_helper.rb
social_stream-base-2.0.0 app/helpers/tags_helper.rb
social_stream-2.0.0.beta3 base/app/helpers/tags_helper.rb