Module: EmailCampaign::EmailHelper
- Defined in:
- app/helpers/email_campaign/email_helper.rb
Instance Method Summary collapse
- #email_link_url(url) ⇒ Object
- #email_tracking_tag ⇒ Object
- #email_unsubscribe_url ⇒ Object
- #email_web_version_url ⇒ Object
Instance Method Details
#email_link_url(url) ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/helpers/email_campaign/email_helper.rb', line 12 def email_link_url(url) if @identifier EmailCampaign::Config.base_url + url_for(:controller => EmailCampaign::Config.controller_name, :action => 'link', :url => url, :k => @identifier) else url end end |
#email_tracking_tag ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/email_campaign/email_helper.rb', line 4 def email_tracking_tag if @identifier image_tag(EmailCampaign::Config.base_url + url_for(:controller => EmailCampaign::Config.controller_name, :action => 'open', :method => @method, :k => @identifier), :size => '1x1', :alt => '') else image_tag(EmailCampaign::Config.base_url + path_to_image('email_campaign/open-tracker.gif'), :size => '1x1', :alt => '') end end |
#email_unsubscribe_url ⇒ Object
20 21 22 |
# File 'app/helpers/email_campaign/email_helper.rb', line 20 def email_unsubscribe_url EmailCampaign::Config.base_url + url_for(:controller => EmailCampaign::Config.controller_name, :action => 'unsubscribe', :k => @identifier) end |
#email_web_version_url ⇒ Object
24 25 26 |
# File 'app/helpers/email_campaign/email_helper.rb', line 24 def email_web_version_url EmailCampaign::Config.base_url + url_for(:controller => EmailCampaign::Config.controller_name, :action => 'web_version', :id => @method, :k => @identifier) end |