lightbox_helper RoR plugin
This plugins worked well. No point in reproducing what it does for you; i.e. highlight (show) an image in a pop-over lightbox. The JavaScript it cool by itself, but this plugin rolls it into RoR (with it’s bundled JavaScript includes of prototype effect) for you.
I use it for showing the original of images I have reduced to fit.
http://agilewebdevelopment.com/plugins/lightbox_helper
e.g. see “view original”.
http://wildobs.com/adam_jack/2008/9/29/Legless-Eleven
Lightbox.js doesn’t cope with massive images (bigger than your screen) by doing anything nice, like fitting them, so the “CLOSE” button pushes off the screen. But hey, it does way better than I did by myself.
FWIIW: I think I had to explicitly include the lightbox JavaScript as well as the CSS (and notice how their guide says reference the CSS not the JavaScript, I didn’t look closely enough and incorrectly assumed) but that could’ve just been a caching issue I had. I do like how Lightbox.js’ technique gracefully falls back to just loading/showing the raw image ‘cos browsers do that well enough.
This also does a better job w/ the Google Map z-index problem I had (my popped-up images had a map bleed through them.)