SoundManager on Rails
This is the original SoundManager2 wrapped in a gem for easy use with Rail's asset pipeline.
Add this line to your application's Gemfile:
Or use bleeding edge code from Github:
gem 'soundmanager-rails', :git => 'git://github.com/glaszig/soundmanager-rails.git'
And then execute:
Add this to your Sprockets manifest:
//= require soundmanager
This asset will load
soundmanager2-nodebug.jsin case of your
Rails.envbeing set to
window.soundManager.urlwill be set to the proper asset url to load fallback swf files.
and you're good to go.
Of course, you can just load the SoundManager library itself using one of the following lines:
//= require soundmanager2 //= require soundmanager2-jsmin //= require soundmanager2-nodebug //= require soundmanager2-nodebug-jsmin
- 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
See the LICENSE file.
SoundManager2 is BSD-licensed.