-
Notifications
You must be signed in to change notification settings - Fork 0
Use Thumbalizr in your Rails site
juliensobrier/thumbalizr-rails
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Thumbalizr-Rails version 1.0 ================================ Thumbalizr (https://thumbalizr.com/) is a web service to easily embed live screenshots of any URL in your website. Thumbalizr has full support for Flash, JavaScript, CSS, & HTML5. You can install the library from rubygem: https://rubygems.org/gems/thumbalizr-rails The source code can be found on github at https://github.com/juliensobrier/thumbalizr-rails This gem is based on the Tumbalir library for Ruby: https://github.com/juliensobrier/thumbalizr-ruby == Build and install thumbalizr-rails git clone https://github.com/juliensobrier/thumbalizr-rails gem build thumbalizr-rails.gemspec gem install --dev thumbalizr-rails-<version>.gem rake test rake rdoc Or gem install thumbalizr-rails == Use with Rails This gems makes the custom tag thumbalizr_url available in your templates. First configure your Rails project: # Gemfile gem 'thumbalizr-rails' # Create config/initializers/thumbalizr.rb ThumbalizrClient.config("MY_KEY", "MY_SECRET") # In your templates, use <%= thumbalizr_url %> to generate the URL of a thumbnail: <img src="<%= thumbalizr_url('https://www.google.com/', {:country => 'us', :width => 400}) %>">
About
Use Thumbalizr in your Rails site
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published