Module: TrackingHelper
- Defined in:
- app/helpers/tracking_helper.rb
Instance Method Summary collapse
- #admin_agent_link(entity) ⇒ Object
- #admin_browser_link(entity) ⇒ Object
- #browsers_for_select ⇒ Object
Instance Method Details
#admin_agent_link(entity) ⇒ Object
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 |
#admin_browser_link(entity) ⇒ Object
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_select ⇒ Object
12 13 14 15 16 |
# File 'app/helpers/tracking_helper.rb', line 12 def browsers_for_select = [[t(:not_set), '']] Browser.ordered_by_name.each { |browser| << [browser.name, browser.id] } end |