Commit 53484861 by Tute Costa

Merge pull request #2185 from jmsoper/master

README elucidation for Ruby beginners
parents fa763d63 842ef6f8
* 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 %>
......
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