This is a barebones Ruby app using the Sinatra framework.
Make sure you have Ruby, Bundler and the Heroku Toolbelt installed.
git clone git@github.com:heroku/ruby-sample.git # or clone your own fork
cd ruby-sample
bundle
heroku local
Your app should now be running on localhost:5000.
heroku create
git push heroku master
heroku open
Alternatively, you can deploy your own copy of the app using the web-based flow:
For more information about using Ruby on Heroku, see these Dev Center articles: