Skip to content
This is a basic rails CRUD app that demonstrates the integration of thoughtbot's paperclip gem with heroku and AWS S3. This app also includes unit and integration tests using rspec and capybara.
Ruby HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
Procfile
README.rdoc
Rakefile
config.ru

README.rdoc

README

This post and tutorial gives background into how to build a basic create/read/update/delete (CRUD) application using Ruby/Rails. The focus of this post is how to set up a file attachment system and put it into production, using the fantastic resources contributed to the the rails and open source community from thoughtbot, Heroku, and Amazon. This post explores the specifics of thoughtbot’s paperclip gem, Heroku’s application hosting platform, and Amazon Web Services’ S3 for attachment/image hosting.

The Challenge and End Result

This post walks through the build out of a basic rails CRUD app and specifically addresses the following:

+ Integrating paperclip, heroku, aws s3, and friendly_id into a basic rails CRUD application that allows for image uploads.

+ Integration of a css library, jasny-bootstrap, that provides a clean UI for file uploads.

+ Basic setup of javascript for image previews, client side form validation, and Turbolinks functionality.

+ Deployment, hosting, and basic maintenance operations for paperclip in a production environment on Heroku.

+ Basic unit and integration testing with paperclip using spork, rspec, capybara, factory_girl, and selenium.

The end result of this tutorial is an application that can be seen at guarded-plateau-4115.herokuapp.com/ (please note this app is hosted using Heroku's free dynos and it may take 5-10 seconds to fire up).

For a full walkthrough and tutorial please visit: apleroy.com/posts/integrating-paperclip-with-heroku-and-aws-s3

You can’t perform that action at this time.