Module: CartoHelper
- Defined in:
- app/helpers/carto_helper.rb
Instance Method Summary collapse
-
#carto_link(file_link) ⇒ String
Creates a Carto OneClick link link, using the configuration link.
-
#carto_provider ⇒ Object
Removes blank space from provider to accomodate Carto OneClick.
Instance Method Details
#carto_link(file_link) ⇒ String
Creates a Carto OneClick link link, using the configuration link
6 7 8 9 10 11 12 13 |
# File 'app/helpers/carto_helper.rb', line 6 def carto_link(file_link) params = URI.encode_www_form( file: file_link, provider: carto_provider, logo: Settings.APPLICATION_LOGO_URL ) carto_oneclick_host + '?' + params end |
#carto_provider ⇒ Object
Removes blank space from provider to accomodate Carto OneClick
18 19 20 |
# File 'app/helpers/carto_helper.rb', line 18 def carto_provider application_name.delete(' ') end |