Sha256: 3d99abab718971e7faa854c7d284bdfc716a8b1eb1305b2a5b4c222faa7f600a
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
{<img src="https://codeclimate.com/github/mattways/ads-rails.png" />}[https://codeclimate.com/github/mattways/ads-rails] {<img src="https://travis-ci.org/mattways/ads-rails.png?branch=master" alt="Build Status" />}[https://travis-ci.org/mattways/ads-rails] {<img src="https://gemnasium.com/mattways/ads-rails.png" alt="Dependency Status" />}[https://gemnasium.com/mattways/ads-rails] = Ads Rails Adds a simple helper to create the google adsense include tag. = Install Put this line in your Gemfile: gem 'ads-rails' Then bundle: $ bundle = Usage In your view add a line like this wherever you like: <%= google_adsense_include_tag client: 'client', slot: 'slot', width: 'width', height: 'height' %> (Will only show the include tag in production and test env) = Configuration If you want to renderer different the placeholder, put something like this in your application.rb: config.ads.renderer = proc { |options| tag(:img, src: "http://placehold.it/#{options[:width]}x#{options[:height]}&text=Google+AdSense") }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ads-rails-0.0.5 | README.rdoc |
ads-rails-0.0.4 | README.rdoc |