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

0 Comments

Thoughts? Do Tell...


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

About

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

Syndication

Feed IconRailsTips Articles - An assortment of howto's and thoughts on Ruby and Rails.

Feed IconRails Quick Tips - Ruby and Rails related links.