Ruby on Rails version '2.3.5' not found

The application /home/www/thinkatomic_web/production/releases/20100420154343 requires Ruby on Rails version 2.3.5, which is not installed. Please install it with the following command:
sudo gem install rails --version 2.3.5