placeGant
Inspired by placekitten, placeGant is a small helper for generating Gantman images. To see all the images available, visit http://placegant.me.
Installing
placegant is available on RubyGems.
Add this line to your application's Gemfile:
gem 'placegant'
And then execute:
$ bundle
Or install it yourself as:
$ gem install placegant
Examples
# Generate a 300x400 placeGant
PlaceGant.image(300, 400) => "http://placegant.me/pg/300/400"
Rails Helpers
# in Gemfile:
gem 'placegant'
# in app/helpers/application_helper.rb:
module ApplicationHelper
include PlaceGant::Helpers
end
# in your views:
<%= image_tag placegant(400, 500) %>