Converting Airtune to Ruby on Rails