August 22, 2006
Older: UJS Rails Plugin
Newer: BDD and rSpec
Hotkey Plugin
Are you a fan of GMail’s hotkeys? Or Bloglines? Well, Bruce Williams just released a Hotkey plugin for Rails. The plugin adds a javascript file and a few helper files which make creating hotkey so easy it’s hard not to use them. The plugin can be used a few different ways:
Calling an action remotely
<%= hotkey_to_remote :d, :url => {:controller=>'some_controller'} %>
Changing browser location
<%= hotkey_to :h, :controller => 'home' } %>
Calling an arbitrary function
<%= hotkey_to_function :p, "showPreferencesPanel();" %>
0 Comments
Thoughts? Do Tell...