class PackageIdsRenderer
Public Instance Methods
attribute_value_to_html(value)
click to toggle source
Render the bibilionumber as a link to the King's Fund Library Catalogue record
# File lib/generators/dog_biscuits/templates/app/renderers/package_ids_renderer.rb, line 5 def attribute_value_to_html(value) object = ActiveFedora::Base.find(value) link_to( "<span class='glyphicon'></span>#{object.first_title}".html_safe, "/concern/#{object.class.to_s.pluralize.underscore}/#{value}" ) end