August 22, 2006

Posted by John

Tagged plugin

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();" %>


Thoughts? Do Tell...

textile enabled, preview above, please be nice
use <pre><code class="ruby"></code></pre> for code blocks


Authored by John Nunemaker (Noo-neh-maker), a programmer who has fallen deeply in love with Ruby. Learn More.


Release your software more often with fewer problems.
Flip your features.