This is a very simple script to upload images with thumbnails
Follow the command below and track the commits to check the manual code changes
rails new basic-image-upload
rails g scaffold pet name picture
rake db:migrate
rails g uploader Picture