Permalink
Browse files

Fix code highlighting

  • Loading branch information...
1 parent 27f2c7a commit 88ca29407ddca7ecd839171f95105fe1f550296d @kugaevsky committed Jan 17, 2013
Showing with 16 additions and 7 deletions.
  1. +16 −7 README.md
View
@@ -11,29 +11,38 @@ The `mousetrap-rails` gem integrates Mousetrap javascript library with Rails Ass
Add this line to your application's Gemfile:
- gem 'mousetrap-rails'
+```ruby
+gem 'mousetrap-rails'
+```
And then execute:
- $ bundle install
+```bash
+$ bundle install
+```
### 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
- //= require mousetrap # ---> application.js
- *= require mousetrap # ---> application.css
+```coffeescript
+//= require mousetrap # ---> application.js
+*= require mousetrap # ---> application.css
+```
Voila!
### Latest (may be unstable) version
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

0 comments on commit 88ca294

Please sign in to comment.