Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails helper for Backtweets widgets

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb

Backtweets Helper

Simple Rails helper to write Backtweets widgets for those that don't like to get their hands dirty with JavaScript.


script/plugin install git://



<-- Simple count -->
<%= backtweets_count -%>

<-- Compact size -->
<%= backtweets_count(:size => 'small', :src => 'RT @pengwynn') -%>

# full options

# Parameter       Default                     Description
# ___________     __________                  ________________
# url             Current URL                 The URL to measure tweets for
# title           Title of current page       The title of the page for retweets
# src                                         Leading text for retweets
# via             true                        If tweets contain '(via @BackType)'
# links           false                       If links should be opened in new windows
# size            "large"                     Size of button ("large" or "small")
# api_key                            API Key for custom URL shortener
# short_url       Generated (           Specify the pre-shortened URL that you would like to use
# background                                  Button background color (e.g. 'FFFFFF')
# border                                      Button border color (e.g. 'CCCCCC')
# text                                        Button text color (e.g. '000000')

Comments widget

<%= backtweets_comments('pengwynn') -%>

Blogroll widget

<%= backtweets_blogroll('pengwynn') -%>

Search widget

<%= backtweets_search('iphone') -%>

Copyright (c) 2009 Wynn Netherland, released under the MIT license

Something went wrong with that request. Please try again.