Source code for the YouTube API, Version 3 on Rails article on SitePoint, created by Ilya Bodrov (radiant-wind.com). Working demo.