Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Paperclip demo application
Ruby CSS JavaScript
tree: 2ef79ccadd

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
vendor
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Paperclip Demo

Reference Application

Demo Ruby on Rails application allows users to manage a list of “friends” using a basic Rails scaffold. Each friend will have a Name and Avatar. Paperclip will provide the image upload and resizing functionality. The app will demonstrate how to create different sized thumbnails, display resized images on different screens, and gracefully degrade to display “missing_avatar.png” for friends without an avatar.

Install Codebase

Clone the git repository

$ git clone git@github.com:thoughtbot/paperclip_demo.git
$ cd paperclip_demo
$ bundle

Run Application

$ rails s

View Application

From a web browser access the site via localhost:3000

Deploy the application to Heroku

Create an application container on Heroku

$ heroku create

Push the code to the Heroku container

$ git push heroku master

Run any database migrations

$ heroku rake db:migrate

Restart the dynos if migrations were run

$ heroku restart
Something went wrong with that request. Please try again.