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")
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request