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

i am a teacher, height: 167,weight;57, Interest: Psychology, Hobby: Music, sport Cici has posted 1 posts at DZone. View Full User Profile

Virtapay1

10.18.2011
| 893 views |
  • submit to reddit
        // 
<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) %>