Placeholder is a simple little gem that inserts image placeholders into your design's wireframe. It uses www.placehold.it's awesome service.
How To Install
Install the gem:
[sudo] gem install placeholder
If you're using Rails, add
config.gem 'placeholder' to your
If you're using Sinatra, add
require 'placeholder' to your main application file.
Placeholder requires a size as the first argument and can accept
This will place a 200x300 image placeholder into your page with the text "Whoa Now". The default text is the image size.
= Placeholder.new("200x300", :text => "Whoa Now")
If you just need a square image, simply do:
You can also pass CSS classes and an ID if you'd like:
= Placeholder.new(80, :id => "gravatar", :class => "active admin")