Commit 842ef6f8 by jmsoper

add links for beginners

change 'show view' to 'view helpers'
parent fa763d63
* 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
......
...@@ -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 %>
...@@ -608,7 +609,7 @@ has_attached_file :scan, styles: { text: { quality: :better } }, ...@@ -608,7 +609,7 @@ has_attached_file :scan, styles: { text: { quality: :better } },
This would load the hypothetical class Paperclip::Ocr, which would have the This would load the hypothetical class Paperclip::Ocr, which would have the
hash "{ quality: :better }" passed to it along with the uploaded file. For 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). [Paperclip::Processor](https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/processor.rb).
The default processor is Paperclip::Thumbnail. For backward compatibility The default processor is Paperclip::Thumbnail. For backward compatibility
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment