Module: TrackingHelper

Defined in:
app/helpers/tracking_helper.rb

Instance Method Summary collapse

Instance Method Details

Parameters:



3
4
5
# File 'app/helpers/tracking_helper.rb', line 3

def admin_agent_link(entity)
  link_to(entity.name, admin_agent_path(id: entity.id))
end

Parameters:



8
9
10
# File 'app/helpers/tracking_helper.rb', line 8

def admin_browser_link(entity)
  link_to(entity.name, admin_browser_path(id: entity.id))
end

#browsers_for_selectObject



12
13
14
15
16
# File 'app/helpers/tracking_helper.rb', line 12

def browsers_for_select
  options = [[t(:not_set), '']]
  Browser.ordered_by_name.each { |browser| options << [browser.name, browser.id] }
  options
end