Module: C80NewsTz::ApplicationHelper
- Defined in:
- app/helpers/c80_news_tz/application_helper.rb
Instance Method Summary collapse
- #apph_url_for_advertiser(advertiser_slug) ⇒ Object
- #apph_url_for_blurb(blurb) ⇒ Object
- #apph_url_for_company(company_slug) ⇒ Object
- #apph_url_for_issue(issue_id) ⇒ Object
- #apph_url_for_notice(notice_slug) ⇒ Object
- #apph_url_for_rubric(rubric_slug) ⇒ Object
- #url_for_fact(fact) ⇒ Object
Instance Method Details
#apph_url_for_advertiser(advertiser_slug) ⇒ Object
25 26 27 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 25 def apph_url_for_advertiser(advertiser_slug) "#{root_url}publishers/#{advertiser_slug}" end |
#apph_url_for_blurb(blurb) ⇒ Object
29 30 31 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 29 def apph_url_for_blurb(blurb) "#{root_url}publications/#{blurb.slug}" end |
#apph_url_for_company(company_slug) ⇒ Object
13 14 15 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 13 def apph_url_for_company(company_slug) "#{root_url}companies/#{company_slug}" end |
#apph_url_for_issue(issue_id) ⇒ Object
21 22 23 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 21 def apph_url_for_issue(issue_id) "#{root_url}issues/#{issue_id}" end |
#apph_url_for_notice(notice_slug) ⇒ Object
17 18 19 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 17 def apph_url_for_notice(notice_slug) "#{root_url}notices/#{notice_slug}" end |
#apph_url_for_rubric(rubric_slug) ⇒ Object
9 10 11 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 9 def apph_url_for_rubric(rubric_slug) "#{root_url}rubrics/#{rubric_slug}" end |
#url_for_fact(fact) ⇒ Object
5 6 7 |
# File 'app/helpers/c80_news_tz/application_helper.rb', line 5 def url_for_fact(fact) "#{root_url}news/#{fact.slug}" end |