Cough-Rails

CoughSyrup adapter for the Rails asset pipeline. Also adds support to use CoughSyrup to respond to JavaScript requests (use .js.cough views).

Installation

Since Rails 3.1 Cough-Rails is included in the default Gemfile when you create a new application. If you are upgrading to Rails 3.1 you must add the cough-rails to your Gemfile:

gem 'cough-rails'

If you are precompiling your assets (with rake assets:precompile) before run your application in production, you might want add it to the assets group to prevent the gem being required in the production environment. Note that this may prevent you from using Coughsyrup for UJS responses.

group :assets do
  gem 'cough-rails'
end

Running tests

$ bundle install
$ bundle exec rake test

If you need to test against local gems, use Bundler's gem :path option in the Gemfile.