Hamato is a Ruby on Rails plugin that allows you to add a dynamic glossary of terms to any page on your site. By passing it a hash of words, it will replace all occurrences of those words on your page with a pop-up link (or whatever you like) that shows a definition you provide of that term.
You can download Hamato from RubyForge.