August 22nd, 2006

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();" %>
Posted by jnunemaker in Plugins

Thoughts? Do Tell...


(textile enabled)

About

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

Syndication

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

Feed IconRails Quick Tips - Ruby and Rails related links that I find. Never more than 5 a day.

Search