kugaevsky/mousetrap-rails

View on GitHub
lib/generators/mousetrap/install/USAGE

Summary

Maintainability
Test Coverage
Description:
    Mousetrap generator installs mousetrap javascript library in your Rails application

Example:
    rails generate mousetrap:install

    This will:
        Create `keybindings.js.coffee' file in your `app/assets/javascripts' directory
        And add `//= require mousetrap' line to `application.js' file to include library to Rails Asset Pipeline