These are a few of my favorite things.
Ruby on Rails
An MVC-based Web framework for Ruby.
The scripting language of Second Life. LSL is used to manipulate nearly anything in Second Life whether that manipulation be visual movement or a prim, texture/color changes or even audio.
Ruby on Rails and LSL combined
Ruby on Rails is a perfect language for making an API. LSL has the ability to both talk to the Internet using HTTP calls (GET, POST, PUT and DELETE) and receive requests from the Internet by starting an XML-RPC server in a prim, making this combination great for creating web services.
Using this combination, one can have in-world prims that can interact with an Internet web site and vise versa.