Created
June 2, 2013 21:28
-
-
Save kugaevsky/5695049 to your computer and use it in GitHub Desktop.
Mousetrap-rails binding example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| = link_to 'Homepage', root_path, data: { keybinding: 'h' } # Press 'h' to navigate to homepage | |
| = link_to 'About', about_path, data: { keybinding: '["a", "c"]' } # Press 'a' or 'c' to navigate to about |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment