Sha256: 9f4460da15adc866bc0c7f9ca5c1b33fe87d90bbc6b1a183bb6c869b1ed9ed21
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 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 unless renderer has been set) = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ads-rails-0.0.6 | README.rdoc |