Twisplay

A little helper to display Tweets on your Rails website, taking Twitter's Design Guidelines into account. Tweet's are stored in your local database.

Installation

Add this line to your application's Gemfile:

gem 'twisplay'

And then execute:

$ rails g twisplay
$ rake db:migrate

Add the Twisplay CSS file 'application.css.scss':

@import "twisplay"

Usage

Render a tweet in a view using the status id from the URL (E.g. https://twitter.com/#!/rails/status/185856371667894273 ):

tweet("185856371667894273")