Method: Padrino::Helpers::AssetTagHelpers#favicon_tag
- Defined in:
- padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb
permalink #favicon_tag(source, options = {}) ⇒ String
Generates a favicon link. Looks inside images folder
191 192 193 194 195 |
# File 'padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb', line 191 def favicon_tag(source, ={}) type = File.extname(source).sub('.','') = { :href => image_path(source), :rel => 'icon', :type => "image/#{type}" }.update() tag(:link, ) end |