DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Virtapay1
// <a href="http://www.virtapay1.com"></a>
// Setup instructions for Ruby on Rails:
Do not forget to set your site token after testing!
Get the gem:
gem install madvertise
Add
require 'madvertise'
to app/controllers/application.rb, or to any specific controller as needed and / or
provide the necessary default settings in your environment.rb file, e.g.
require 'madvertise'
Madvertise::config do |c|
c.site_token = 'TestTokn'
end
Place a request in the view, e.g.
<%= Madvertiese.get_ad(request) %>





