Sha256: 1ff975bb42e85db2b75d7163495870d7d058d7972958eaabe0f173115aa87dd4

Contents?: true

Size: 698 Bytes

Versions: 6

Compression:

Stored size: 698 Bytes

Contents

module C80NewsTz
  module ApplicationHelper

    def url_for_fact(fact)
      "#{root_url}news/#{fact.slug}"
    end

    def apph_url_for_rubric(rubric_slug)
      "#{root_url}rubrics/#{rubric_slug}"
    end

    def apph_url_for_company(company_slug)
      "#{root_url}companies/#{company_slug}"
    end
    
    def apph_url_for_notice(notice_slug)
      "#{root_url}notices/#{notice_slug}"
    end
    
    def apph_url_for_issue(issue_id)
      "#{root_url}issues/#{issue_id}"
    end

    def apph_url_for_advertiser(advertiser_slug)
      "#{root_url}publishers/#{advertiser_slug}"
    end

    def apph_url_for_blurb(blurb)
      "#{root_url}publications/#{blurb.slug}"
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 app/helpers/c80_news_tz/application_helper.rb
c80_news_tz-0.1.1.25 app/helpers/c80_news_tz/application_helper.rb
c80_news_tz-0.1.1.24 app/helpers/c80_news_tz/application_helper.rb
c80_news_tz-0.1.1.23 app/helpers/c80_news_tz/application_helper.rb
c80_news_tz-0.1.1.22 app/helpers/c80_news_tz/application_helper.rb
c80_news_tz-0.1.1.21 app/helpers/c80_news_tz/application_helper.rb