Tubular::Rails
tubular-rails wraps the tubular library in a rails
engine for simple use with the asset pipeline provided by Rails 3.1 and higher.
The gem includes the development (non-minified) source for ease of exploration.
The asset pipeline will minify in production.
Tubular is a jQuery plugin that lets you set a YouTube video as your page background.
Please see the Demo Website for details.
Installation
Add this line to your application's Gemfile:
gem 'tubular-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tubular-rails
Usage
Add the following to your gemfile:
gem 'tubular-rails'
Add the following directive to your Javascript manifest file (application.js):
//= require jquery.tubular.1.0
Contributing
- Fork it ( https://github.com/[my-github-username]/tubular-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request