enterprises_block.rb 360 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 class EnterprisesBlock < Design::Block def content lambda do content_tag( 'ul', Enterprise.find(:all).map do |p| content_tag( 'li', content_tag( 'span', link_to( p.name, :profile => p.identifier) )) end ) end end end