Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
9cda485e
Commit
9cda485e
authored
Sep 18, 2012
by
Philip Arndt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated README formatting
* Added more GitHub Flavoured Markdown syntax highlighting.
parent
a16a50a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
README.md
+17
-7
No files found.
README.md
View file @
9cda485e
...
@@ -42,7 +42,9 @@ directory to its path.
...
@@ -42,7 +42,9 @@ directory to its path.
In development mode, you might add this line to
`config/environments/development.rb)`
:
In development mode, you might add this line to
`config/environments/development.rb)`
:
Paperclip.options[:command_path] = "/usr/local/bin/"
```
ruby
Paperclip
.
options
[
:command_path
]
=
"/usr/local/bin/"
```
If you're on Mac OS X, you'll want to run the following with Homebrew:
If you're on Mac OS X, you'll want to run the following with Homebrew:
...
@@ -61,15 +63,21 @@ Paperclip is distributed as a gem, which is how it should be used in your app.
...
@@ -61,15 +63,21 @@ Paperclip is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:
Include the gem in your Gemfile:
gem "paperclip", "~> 3.0"
```
ruby
gem
"paperclip"
,
"~> 3.0"
```
If you're still using Rails 2.3.x, you should do this instead:
If you're still using Rails 2.3.x, you should do this instead:
gem "paperclip", "~> 2.7"
```
ruby
gem
"paperclip"
,
"~> 2.7"
```
Or, if you want to get the latest, you can get master from the main paperclip repository:
Or, if you want to get the latest, you can get master from the main paperclip repository:
gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git"
```
ruby
gem
"paperclip"
,
:git
=>
"git://github.com/thoughtbot/paperclip.git"
```
If you're trying to use features that don't seem to be in the latest released gem, but are
If you're trying to use features that don't seem to be in the latest released gem, but are
mentioned in this README, then you probably need to specify the master branch if you want to
mentioned in this README, then you probably need to specify the master branch if you want to
...
@@ -567,18 +575,20 @@ end
...
@@ -567,18 +575,20 @@ end
Then in
`RAILS_ROOT/public/system/paperclip_attachments.yml`
:
Then in
`RAILS_ROOT/public/system/paperclip_attachments.yml`
:
---
```
yml
:User:
---
:User
:
:avatar
:
:avatar
:
-
:thumb
-
:thumb
-
:croppable
-
:croppable
-
:big
-
:big
:Book:
:Book
:
:cover
:
:cover
:
-
:small
-
:small
-
:large
-
:large
:sample
:
:sample
:
-
:thumb
-
:thumb
```
Testing
Testing
-------
-------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment