Sha256: 42793db1ce59feae5afe6d278161562e4714ed87ff5f4db40ef49b06af557704

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

# SoundManager on Rails

This is the original [SoundManager2](http://www.schillmania.com/projects/soundmanager2/) wrapped in a gem for easy use with Rail's asset pipeline.

## Installation

Add this line to your application's Gemfile:

    gem 'soundmanager-rails', :git => 'git://github.com/glaszig/soundmanager-rails.git'

And then execute:

    $ bundle

## Usage

Add this to your Sprockets manifest:

    //= require soundmanager

> This asset will load `soundmanager2.js`, `soundmanager2-nodebug.js` or `soundmanager2-nodebug-jsmin.js` in case of your `Rails.env` being set to `development`, `test` or `<anything>`, respectively.  
> Additionally, `window.soundManager.url` will 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


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

# License

See the LICENSE file.  
SoundManager2 is BSD-licensed.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soundmanager-rails-0.0.1 README.md