In the interest of sharing knowledge, there's a great starting point over here at:
www.github.com/elcuervo/airplay
The creator's name is Bruno Aguirre and he loves feedback. This gem should help you stream from a server in Ruby on Rails to an Apple TV.