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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
NEWS
+2
-0
README.md
+4
-3
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):
5.0.0.beta2 (2015-04-01):
* Bugfix: Dynamic fog directory option is now respected
* 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
...
@@ -97,7 +97,7 @@ In development mode, you might add this line to `config/environments/development
Paperclip
.
options
[
:command_path
]
=
"/usr/local/bin/"
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
brew install imagemagick
...
@@ -220,7 +220,8 @@ end
...
@@ -220,7 +220,8 @@ end
<%
end
%>
<%
end
%>
```
```
### Edit and New Views with Simple Form
### Edit and New Views with [Simple Form](https://github.com/plataformatec/simple_form)
```
erb
```
erb
<%=
simple_form_for
@user
,
url:
users_path
do
|
form
|
%>
<%=
simple_form_for
@user
,
url:
users_path
do
|
form
|
%>
<%=
form
.
input
:avatar
,
as: :file
%>
<%=
form
.
input
:avatar
,
as: :file
%>
...
@@ -244,7 +245,7 @@ def user_params
...
@@ -244,7 +245,7 @@ def user_params
end
end
```
```
###
Show View
###
View Helpers
```
erb
```
erb
<%=
image_tag
@user
.
avatar
.
url
%>
<%=
image_tag
@user
.
avatar
.
url
%>
...
...
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