Ruby (on Rails) code for Movie Contests