CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 01 Sep 2025 01:14:54 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090914234114
location: https://web.archive.org/web/20090914234114/https://github.com/thoughtbot/paperclip/tree/v2.0.1
server-timing: captures_list;dur=0.725396, exclusion.robots;dur=0.023432, exclusion.robots.policy;dur=0.011288, esindex;dur=0.011481, cdx.remote;dur=108.838916, LoadShardBlock;dur=207.654085, PetaboxLoader3.datanode;dur=60.873838, PetaboxLoader3.resolve;dur=89.830570
x-app-server: wwwb-app212
x-ts: 302
x-tr: 359
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: Mon, 01 Sep 2025 01:14:55 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Mon, 14 Sep 2009 23:41:12 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "23eb20d0e819c49141e505d280b5ad6a"
x-archive-orig-x-runtime: 271ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 26492
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Sep 2009 23:41:14 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="Sun, 21 Jun 2009 23:18:21 GMT", ; rel="memento"; datetime="Mon, 14 Sep 2009 23:41:14 GMT", ; rel="next memento"; datetime="Sun, 13 Dec 2009 14:10:11 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_11_20090914185251_crawl103.gpg-c/52_11_20090914234014_crawl101.arc.gz
server-timing: captures_list;dur=0.502856, exclusion.robots;dur=0.019472, exclusion.robots.policy;dur=0.008846, esindex;dur=0.011140, cdx.remote;dur=105.633814, LoadShardBlock;dur=145.495174, PetaboxLoader3.datanode;dur=211.043144, PetaboxLoader3.resolve;dur=120.684797, load_resource;dur=245.438565
x-app-server: wwwb-app212
x-ts: 200
x-tr: 558
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 (

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)
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!