link_block.rb 189 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 class LinkBlock < Block def to_html profiles = Profile.find(:all).map do |p| content_tag("a href='http://www.google.com.br'", p.name) end profiles.join(',') end end