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
53484861
Commit
53484861
authored
Apr 30, 2016
by
Tute Costa
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2185 from jmsoper/master
README elucidation for Ruby beginners
parents
fa763d63
842ef6f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
NEWS
+2
-0
README.md
+5
-4
No files found.
NEWS
View file @
53484861
* README adjustments for Ruby beginners (add links, elucidate model in Quick Start)
5.0.0.beta2 (2015-04-01):
* Bugfix: Dynamic fog directory option is now respected
...
...
README.md
View file @
53484861
...
...
@@ -97,7 +97,7 @@ In development mode, you might add this line to `config/environments/development
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
]
(
http://www.brew.sh
)
:
brew install imagemagick
...
...
@@ -220,7 +220,8 @@ end
<%
end
%>
```
### Edit and New Views with Simple Form
### Edit and New Views with [Simple Form](https://github.com/plataformatec/simple_form)
```
erb
<%=
simple_form_for
@user
,
url:
users_path
do
|
form
|
%>
<%=
form
.
input
:avatar
,
as: :file
%>
...
...
@@ -244,7 +245,7 @@ def user_params
end
```
###
Show View
###
View Helpers
```
erb
<%=
image_tag
@user
.
avatar
.
url
%>
...
...
@@ -608,7 +609,7 @@ has_attached_file :scan, styles: { text: { quality: :better } },
This would load the hypothetical class Paperclip::Ocr, which would have the
hash "{ quality: :better }" passed to it along with the uploaded file. For
more information about defining processors, see
more information about defining processors, see
[
Paperclip::Processor
](
https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/processor.rb
)
.
The default processor is Paperclip::Thumbnail. For backward compatibility
...
...
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