Fix for dropbox was just a minor change in avatar-uploader.rb. Wrong 'end'