CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 20 Aug 2025 11:23:56 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091213141011
location: https://web.archive.org/web/20091213141011/https://github.com/thoughtbot/paperclip/tree/v2.0.1
server-timing: captures_list;dur=1.037433, exclusion.robots;dur=0.075599, exclusion.robots.policy;dur=0.026356, esindex;dur=0.017251, cdx.remote;dur=33.894467, LoadShardBlock;dur=288.909089, PetaboxLoader3.resolve;dur=182.445393, PetaboxLoader3.datanode;dur=76.355777
x-app-server: wwwb-app201
x-ts: 302
x-tr: 951
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app201; 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: Wed, 20 Aug 2025 11:23:58 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 13 Dec 2009 14:10:11 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "2025f0ad0c7d43ba643d635419cbf66d"
x-archive-orig-x-runtime: 74ms
x-archive-orig-content-length: 27152
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 13 Dec 2009 14:10:11 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 04 Aug 2008 09:43:39 GMT", ; rel="prev memento"; datetime="Mon, 14 Sep 2009 23:41:14 GMT", ; rel="memento"; datetime="Sun, 13 Dec 2009 14:10:11 GMT", ; rel="next memento"; datetime="Fri, 12 Feb 2010 13:46:47 GMT", ; rel="last memento"; datetime="Tue, 15 Jun 2010 07:16:10 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_13_20091213134717_crawl100-c/52_13_20091213140811_crawl101.arc.gz
server-timing: captures_list;dur=0.563472, exclusion.robots;dur=0.030424, exclusion.robots.policy;dur=0.018402, esindex;dur=0.010716, cdx.remote;dur=4.679109, LoadShardBlock;dur=922.820068, PetaboxLoader3.resolve;dur=772.052385, PetaboxLoader3.datanode;dur=391.312174, load_resource;dur=317.513704
x-app-server: wwwb-app201
x-ts: 200
x-tr: 1305
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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.1 - 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 (

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)
Wed Mar 19 07:05: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 | ||
![]() |
lib/ | ||
![]() |
tasks/ | ||
![]() |
test/ |
README
=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!