This is a simple Ruby app using the Rails framework.
Asumming you have Ruby, Bundler and Heroku Toolbelt installed on your machine:
git clone [email protected]:heroku/ruby-rails-sample.git # or clone your own fork
cd ruby-rails-sample
bundle
bundle exec rake bootstrap
foreman start
Your app should now be running on localhost:5000.
heroku create
git push heroku master
heroku run rake db:migrate
heroku open
For more information about using Ruby on Heroku, see these Dev Center articles: