CaptureAPI
Rails3 Configuration
You will need to create an initializer before using the library.
Example:
# config/initializers/captureapi.rb
CaptureAPI.configure do |config|
config.api_key = '1a243b45c'
config.api_key_id = '3'
end
View helpers
thumbnail_tag(url, options = {})
Valid options are:
width
: The width of the final thumbnail (default: 200
).
height
: The height of the final thumbnail (default: 200
).
alt
: The value of the alt
attribute for the <img>
tag (default: "Thumbnail of #{url}"
).