Skip to content

Commit

Permalink
Fix code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
kugaevsky committed Jan 21, 2013
1 parent e232615 commit 714dac5
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,29 +11,38 @@ The `mousetrap-rails` gem integrates Mousetrap javascript library with Rails Ass


Add this line to your application's Gemfile: Add this line to your application's Gemfile:


gem 'mousetrap-rails' ```ruby
gem 'mousetrap-rails'
```


And then execute: And then execute:


$ bundle install ```bash
$ bundle install
```


### Run generator ### Run generator


$ rails generate mousetrap:install ```bash
$ rails generate mousetrap:install
```


It will create sample `keybindings.js.coffee` file in `app/assets/javascripts` and insert mousetrap-rails files to manifests of assert pipeline It will create sample `keybindings.js.coffee` file in `app/assets/javascripts` and insert mousetrap-rails files to manifests of assert pipeline


//= require mousetrap # ---> application.js ```coffeescript
*= require mousetrap # ---> application.css //= require mousetrap # ---> application.js
*= require mousetrap # ---> application.css
```


Voila! Voila!


### Latest (may be unstable) version ### Latest (may be unstable) version


Instead of `gem 'mousetrap-rails'` add to your Gemfile Instead of `gem 'mousetrap-rails'` add to your Gemfile


gem 'mousetrap-rails', github: 'kugaevsky/mousetrap-rails' ```ruby

gem 'mousetrap-rails', github: 'kugaevsky/mousetrap-rails'
```


## Usage ## Usage


Expand Down

0 comments on commit 714dac5

Please sign in to comment.