Skip to content
rbazinet edited this page Feb 28, 2012 · 1 revision

Getting started is pretty easy.

Rails 3.x

  1. Add render_mate to your Gemfile:
gem 'render_mate'
  1. Add the code to your project to call the web service:
require 'render_mate'

page = 'http://cnn.com'
api_key = '1234567890'

rendered_page = RenderMate.render(api_key, page)
  1. That's it. The result will be HTML generated from the page. You can pass it along to something like Nokogiri for further process or parse yourself.
Clone this wiki locally