CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 12:49:25 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090621093543
location: https://web.archive.org/web/20090621093543/https://github.com/thoughtbot/paperclip/tree/v2.0.0
server-timing: captures_list;dur=0.829220, exclusion.robots;dur=0.025034, exclusion.robots.policy;dur=0.010721, esindex;dur=0.014255, cdx.remote;dur=33.301374, LoadShardBlock;dur=189.526515, PetaboxLoader3.datanode;dur=67.193815, PetaboxLoader3.resolve;dur=53.059692
x-app-server: wwwb-app212
x-ts: 302
x-tr: 279
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 12:49:26 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sun, 21 Jun 2009 09:35:43 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 314ms
x-archive-orig-etag: "94a445766cda25977c5c1757f25ae800"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 26506
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 21 Jun 2009 09:35:43 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 04 Aug 2008 09:43:35 GMT", ; rel="prev memento"; datetime="Tue, 21 Apr 2009 00:02:05 GMT", ; rel="memento"; datetime="Sun, 21 Jun 2009 09:35:43 GMT", ; rel="next memento"; datetime="Thu, 17 Sep 2009 09:22:03 GMT", ; rel="last memento"; datetime="Tue, 15 Jun 2010 08:27:25 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_10_20090621080903_crawl102-c/52_10_20090621093428_crawl101.arc.gz
server-timing: captures_list;dur=0.505809, exclusion.robots;dur=0.017317, exclusion.robots.policy;dur=0.009052, esindex;dur=0.010852, cdx.remote;dur=27.850045, LoadShardBlock;dur=215.370778, PetaboxLoader3.datanode;dur=232.565301, PetaboxLoader3.resolve;dur=524.003709, load_resource;dur=592.713621
x-app-server: wwwb-app212
x-ts: 200
x-tr: 913
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
thoughtbot's paperclip at v2.0.0 - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install thoughtbot-paperclip
Description: | Easy file attachment management for ActiveRecord edit |
Homepage: | https://www.thoughtbot.com/projects/paperclip edit |
Public Clone URL: |
git://github.com/thoughtbot/paperclip.git
Give this clone URL to anyone.
git clone git://github.com/thoughtbot/paperclip.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:thoughtbot/paperclip.git
|

jyurek (author)
Tue Mar 18 15:51:56 -0700 2008
name | age | message | |
---|---|---|---|
![]() |
README | Loading commit data... ![]() |
|
![]() |
Rakefile | ||
![]() |
generators/ | Fri Oct 26 09:16:58 -0700 2007 | Did some APIish stuff. git-svn-id: https://svn... [jyurek] |
![]() |
init.rb | Fri Nov 09 08:17:58 -0800 2007 | On the way to good-code-dom git-svn-id: https:... [jyurek] |
![]() |
lib/ | ||
![]() |
tasks/ | Tue Mar 18 10:59:04 -0700 2008 | Huge refactoring. git-svn-id: https://svn.thou... [jyurek] |
![]() |
test/ |
=Paperclip Paperclip is intended as an easy file attachment library for ActiveRecord. The intent behind it was to keep setup as easy as possible and to treat files as much like other attributes as possible. This means they aren't saved to their final locations on disk, nor are they deleted if set to nil, until ActiveRecord::Base#save is called. It manages validations based on size and presence, if required. It can transform its assigned image into thumbnails if needed, and the prerequisites are as simple as installing ImageMagick (which, for most modern Unix-based systems, is as easy as installing the right packages). Attached files are saved to the filesystem and referenced in the browser by an easily understandable specification, which has sensible and useful defaults. See the documentation for the +has_attached_file+ method for options. ==Usage In your model: class User < ActiveRecord::Base has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" } end In your edit and new views: <% form_for :user, @user, :url => user_path, :html => { :multipart => true } do |form| %> <%= form.file_field :avatar %> <% end %> In your controller: def create @user = User.create( params[:user] ) end In your show view: <%= image_tag @user.avatar.url %> <%= image_tag @user.avatar.url(:medium) %> <%= image_tag @user.avatar.url(:thumb) %>
This feature is coming soon. Sit tight!