Ruby on Rails version '2.1.0' not found

The application /root/webapps/teamzu_production/releases/20080717194425 requires Ruby on Rails version 2.1.0, which is not installed. Please install it with the following command:
sudo gem install rails --version 2.1.0