Module: EmpresaulaHelper

Defined in:
app/helpers/empresaula_helper.rb

Instance Method Summary collapse

Instance Method Details

#faviconObject

Use it in your views to automatically add the favicon header tag



4
5
6
# File 'app/helpers/empresaula_helper.rb', line 4

def favicon
  tag :link, rel: 'shortcut icon', href: asset_path('empresaula/favicon.png')
end

#logo(options = {}) ⇒ Object

Puts the logo



9
10
11
12
13
14
15
16
17
# File 'app/helpers/empresaula_helper.rb', line 9

def (options = {})
  options[:url] ||= '/'
  options[:title] ||= 'Empresaula'
  options[:color] = !!options[:color]
  img = options[:color] ? 'empresaula/logo-color.png' : 'empresaula/logo.png'
   :a, href: options[:url], title: options[:title] do
    image_tag img, alt: options[:title], size: '328x72'
  end
end