Commit cdbc05eb by Ahmad Al-kheat Committed by Mike Burns

Document how to use Paperclip with Simple Form

parent e195ef66
...@@ -183,6 +183,13 @@ end ...@@ -183,6 +183,13 @@ end
<% end %> <% end %>
``` ```
### Edit and New Views with Simple Form
```erb
<%= simple_form_for @user, url: users_path do |form| %>
<%= form.input :avatar, as: :file %>
<% end %>
```
### Controller ### Controller
**Rails 3** **Rails 3**
......
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